summaryrefslogtreecommitdiff
path: root/layouts/community/ergodox/333fred/keymap.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-10-20 21:27:46 +0100
committerGitHub <noreply@github.com>2021-10-20 21:27:46 +0100
commit1816006121de991581d50d0bc6b5a653e2b3ccd2 (patch)
tree3de083612fba22f40b6f899e35e085b797fc51d0 /layouts/community/ergodox/333fred/keymap.c
parentd4be4b67a251ecc046d857c5cd00cfb37c394ab7 (diff)
Tidy up LCD_ENABLE/visualizer references (#14855)
* Tidy up LCD_ENABLE/visualizer references * Fix up my (333fred) ergodox keymap with new LCD driver Co-authored-by: Fredric Silberberg <fred@silberberg.xyz>
Diffstat (limited to 'layouts/community/ergodox/333fred/keymap.c')
-rw-r--r--layouts/community/ergodox/333fred/keymap.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/layouts/community/ergodox/333fred/keymap.c b/layouts/community/ergodox/333fred/keymap.c
index b9aefd9293..5dee9a1e3f 100644
--- a/layouts/community/ergodox/333fred/keymap.c
+++ b/layouts/community/ergodox/333fred/keymap.c
@@ -272,3 +272,43 @@ void matrix_scan_user(void) {
ergodox_led_all_on();
}
+#ifdef ST7565_ENABLE
+
+void st7565_task_user(void) {
+ // The colors will need to be ported over to the quantum painter API when
+ // https://github.com/qmk/qmk_firmware/pull/10174 is merged.
+
+ st7565_clear();
+ switch (get_highest_layer(layer_state)) {
+ case BASE:
+ //state->target_lcd_color = LCD_COLOR(84, saturation, 0xFF);
+ st7565_write_P(PSTR("Default\n"), false);
+ break;
+ case CODEFLOW:
+ //state->target_lcd_color = LCD_COLOR(216, 90, 0xFF);
+ st7565_write_P(PSTR("Code\n"), false);
+ break;
+ case SYMB:
+ //state->target_lcd_color = LCD_COLOR(168, saturation, 0xFF);
+ st7565_write_P(PSTR("Symbol\n"), false);
+ break;
+ case MDIA:
+ //state->target_lcd_color = LCD_COLOR(0, saturation, 0xFF);
+ st7565_write_P(PSTR("Media\n"), false);
+ break;
+ case VIM:
+ //state->target_lcd_color = LCD_COLOR(140, 100, 60);
+ st7565_write_P(PSTR("Movement\n"), false);
+ break;
+ case GAME:
+ //state->target_lcd_color = LCD_COLOR(0, 255, 60);
+ st7565_write_P(PSTR("Game\n"), false);
+ break;
+ case GAME_ARROW:
+ //state->target_lcd_color = LCD_COLOR(0, 255, 60);
+ st7565_write_P(PSTR("Game Arrow\n"), false);
+ break;
+ }
+}
+
+#endif