diff options
Diffstat (limited to 'keyboards/rgbkb/zen/rev2/rev2.c')
| -rw-r--r-- | keyboards/rgbkb/zen/rev2/rev2.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/keyboards/rgbkb/zen/rev2/rev2.c b/keyboards/rgbkb/zen/rev2/rev2.c index 7bc007246..546189027 100644 --- a/keyboards/rgbkb/zen/rev2/rev2.c +++ b/keyboards/rgbkb/zen/rev2/rev2.c | |||
| @@ -47,20 +47,23 @@ void render_status(void) { | |||
| 47 | oled_write_P(led_usb_state & (1<<USB_LED_SCROLL_LOCK) ? PSTR("SCRLK") : PSTR(" "), false); // Line 16 | 47 | oled_write_P(led_usb_state & (1<<USB_LED_SCROLL_LOCK) ? PSTR("SCRLK") : PSTR(" "), false); // Line 16 |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 50 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
| 51 | if (is_keyboard_master()) | 51 | if (is_keyboard_master()) |
| 52 | return OLED_ROTATION_270; // flips the display 270 degrees if mainhand | 52 | return OLED_ROTATION_270; // flips the display 270 degrees if mainhand |
| 53 | return rotation; | 53 | return rotation; |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | __attribute__((weak)) | 56 | bool oled_task_kb(void) { |
| 57 | void oled_task_user(void) { | 57 | if (!oled_task_user()) { |
| 58 | return false; | ||
| 59 | } | ||
| 58 | if (is_keyboard_master()) { | 60 | if (is_keyboard_master()) { |
| 59 | render_status(); | 61 | render_status(); |
| 60 | } else { | 62 | } else { |
| 61 | render_logo(); | 63 | render_logo(); |
| 62 | oled_scroll_left(); | 64 | oled_scroll_left(); |
| 63 | } | 65 | } |
| 66 | return false; | ||
| 64 | } | 67 | } |
| 65 | 68 | ||
| 66 | #endif | 69 | #endif |
