aboutsummaryrefslogtreecommitdiff
path: root/keyboards/knobgoblin
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/knobgoblin')
-rw-r--r--keyboards/knobgoblin/keymaps/moults31/keymap.c3
-rw-r--r--keyboards/knobgoblin/knobgoblin.c10
2 files changed, 10 insertions, 3 deletions
diff --git a/keyboards/knobgoblin/keymaps/moults31/keymap.c b/keyboards/knobgoblin/keymaps/moults31/keymap.c
index 16830bc98..20dda4ccd 100644
--- a/keyboards/knobgoblin/keymaps/moults31/keymap.c
+++ b/keyboards/knobgoblin/keymaps/moults31/keymap.c
@@ -141,7 +141,7 @@ static void render_goblin_logo(void) {
141 oled_write_raw_P(my_logo, sizeof(my_logo)); 141 oled_write_raw_P(my_logo, sizeof(my_logo));
142} 142}
143 143
144void oled_task_user(void) { 144bool oled_task_user(void) {
145 145
146 render_goblin_logo(); 146 render_goblin_logo();
147 147
@@ -167,4 +167,5 @@ void oled_task_user(void) {
167 oled_write_P(PSTR(" NONE\n"), false); 167 oled_write_P(PSTR(" NONE\n"), false);
168 break; 168 break;
169 } 169 }
170 return false;
170} 171}
diff --git a/keyboards/knobgoblin/knobgoblin.c b/keyboards/knobgoblin/knobgoblin.c
index 7349a3199..fcf86a3a4 100644
--- a/keyboards/knobgoblin/knobgoblin.c
+++ b/keyboards/knobgoblin/knobgoblin.c
@@ -40,7 +40,9 @@ bool encoder_update_kb(uint8_t index, bool clockwise) {
40 40
41#ifdef OLED_ENABLE 41#ifdef OLED_ENABLE
42/* rotate screen for proper orentation*/ 42/* rotate screen for proper orentation*/
43__attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_270; } 43oled_rotation_t oled_init_kb(oled_rotation_t rotation) {
44 return OLED_ROTATION_270;
45}
44 46
45/* byte map for the goblin logo, knob goblin text, and level text */ 47/* byte map for the goblin logo, knob goblin text, and level text */
46static void render_goblin_logo(void) { 48static void render_goblin_logo(void) {
@@ -72,7 +74,10 @@ static void render_goblin_logo(void) {
72} 74}
73 75
74/* text display for layer indication */ 76/* text display for layer indication */
75__attribute__((weak)) void oled_task_user(void) { 77bool oled_task_kb(void) {
78 if (!oled_task_user()) {
79 return false;
80 }
76 81
77 render_goblin_logo(); 82 render_goblin_logo();
78 83
@@ -99,5 +104,6 @@ __attribute__((weak)) void oled_task_user(void) {
99 break; 104 break;
100 105
101 } 106 }
107 return false;
102} 108}
103#endif 109#endif