summaryrefslogtreecommitdiff
path: root/users/snowe/oled_setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/snowe/oled_setup.c')
-rw-r--r--users/snowe/oled_setup.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/users/snowe/oled_setup.c b/users/snowe/oled_setup.c
index dfc4b085e3..be54d9f558 100644
--- a/users/snowe/oled_setup.c
+++ b/users/snowe/oled_setup.c
@@ -25,15 +25,16 @@
# include <stdio.h> // for keylog?
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
- if (!is_master) {
+ if (!is_keyboard_master()) {
return OLED_ROTATION_270; // flips the display 180 degrees if offhand
}
return OLED_ROTATION_270;
}
# define L_BASE 0
-# define L_LOWER 2
-# define L_RAISE 4
+# define L_GAME 2
+# define L_LOWER 4
+# define L_RAISE 6
# define L_ADJUST 8
void oled_render_layer_state(void) {
@@ -42,18 +43,21 @@ void oled_render_layer_state(void) {
case L_BASE:
oled_write_ln_P(PSTR("Main"), false);
break;
+ case L_GAME:
+ oled_write_ln_P(PSTR("Game"), false);
+ break;
case L_LOWER:
oled_write_ln_P(PSTR("Bot"), false);
break;
case L_RAISE:
oled_write_ln_P(PSTR("Top"), false);
break;
- case L_ADJUST:
- case L_ADJUST | L_LOWER:
- case L_ADJUST | L_RAISE:
- case L_ADJUST | L_LOWER | L_RAISE:
- oled_write_ln_P(PSTR("Comb"), false);
- break;
+// case L_ADJUST:
+// case L_ADJUST | L_LOWER:
+// case L_ADJUST | L_RAISE:
+// case L_ADJUST | L_LOWER | L_RAISE:
+// oled_write_ln_P(PSTR("Comb"), false);
+// break;
}
}
@@ -122,7 +126,7 @@ void render_bootmagic_status(void) {
}
bool oled_task_user(void) {
- if (is_master) {
+ if (is_keyboard_master()) {
oled_render_layer_state();
oled_render_keylog();
render_bootmagic_status();