aboutsummaryrefslogtreecommitdiff
path: root/keyboards/yampad/yampad.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/yampad/yampad.c')
-rw-r--r--keyboards/yampad/yampad.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/keyboards/yampad/yampad.c b/keyboards/yampad/yampad.c
index 950a98721..eab218d3b 100644
--- a/keyboards/yampad/yampad.c
+++ b/keyboards/yampad/yampad.c
@@ -17,13 +17,14 @@
17#include "yampad.h" 17#include "yampad.h"
18 18
19#if defined(OLED_ENABLE) 19#if defined(OLED_ENABLE)
20__attribute__((weak)) 20oled_rotation_t oled_init_kb(oled_rotation_t rotation) {
21oled_rotation_t oled_init_user(oled_rotation_t rotation) { 21 return OLED_ROTATION_270;
22 return OLED_ROTATION_270; // flips the display 270 degrees
23} 22}
24 23
25__attribute__((weak)) 24bool oled_task_kb(void) {
26void oled_task_user(void) { 25 if (!oled_task_user()) {
26 return false;
27 }
27 // Host Keyboard Layer Status 28 // Host Keyboard Layer Status
28 oled_write_P(PSTR("Layer"), false); 29 oled_write_P(PSTR("Layer"), false);
29 switch (get_highest_layer(layer_state)) { 30 switch (get_highest_layer(layer_state)) {
@@ -60,5 +61,7 @@ void oled_task_user(void) {
60 (uint8_t)(rgblight_get_sat() / RGBLIGHT_SAT_STEP), 61 (uint8_t)(rgblight_get_sat() / RGBLIGHT_SAT_STEP),
61 (uint8_t)(rgblight_get_val() / RGBLIGHT_VAL_STEP)); 62 (uint8_t)(rgblight_get_val() / RGBLIGHT_VAL_STEP));
62 oled_write(led_buf, false); 63 oled_write(led_buf, false);
64
65 return false;
63} 66}
64#endif 67#endif