diff options
Diffstat (limited to 'keyboards/hadron/ver2/ver2.c')
| -rw-r--r-- | keyboards/hadron/ver2/ver2.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/keyboards/hadron/ver2/ver2.c b/keyboards/hadron/ver2/ver2.c index ca1342749..abf21d425 100644 --- a/keyboards/hadron/ver2/ver2.c +++ b/keyboards/hadron/ver2/ver2.c | |||
| @@ -1,13 +1,12 @@ | |||
| 1 | #include "ver2.h" | 1 | #include "ver2.h" |
| 2 | 2 | ||
| 3 | #ifdef OLED_ENABLE | 3 | #ifdef OLED_ENABLE |
| 4 | __attribute__ ((weak)) | 4 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { return OLED_ROTATION_180; } |
| 5 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | ||
| 6 | return OLED_ROTATION_180; | ||
| 7 | } | ||
| 8 | 5 | ||
| 9 | __attribute__ ((weak)) | 6 | bool oled_task_kb(void) { |
| 10 | void oled_task_user(void) { | 7 | if (!oled_task_user()) { |
| 8 | return false; | ||
| 9 | } | ||
| 11 | oled_write_P(PSTR("LAYER "), false); | 10 | oled_write_P(PSTR("LAYER "), false); |
| 12 | oled_write_char(get_highest_layer(layer_state) + 0x30, true); | 11 | oled_write_char(get_highest_layer(layer_state) + 0x30, true); |
| 13 | 12 | ||
| @@ -61,5 +60,6 @@ void oled_task_user(void) { | |||
| 61 | for (uint8_t y = 0; y < 8; y++) { | 60 | for (uint8_t y = 0; y < 8; y++) { |
| 62 | oled_write_pixel(35, 0 + y, true); | 61 | oled_write_pixel(35, 0 + y, true); |
| 63 | } | 62 | } |
| 63 | return false; | ||
| 64 | } | 64 | } |
| 65 | #endif | 65 | #endif |
