diff options
272 files changed, 967 insertions, 599 deletions
diff --git a/docs/feature_oled_driver.md b/docs/feature_oled_driver.md index 908bd801c..fc63e492d 100644 --- a/docs/feature_oled_driver.md +++ b/docs/feature_oled_driver.md | |||
@@ -38,7 +38,7 @@ Then in your `keymap.c` file, implement the OLED task call. This example assumes | |||
38 | 38 | ||
39 | ```c | 39 | ```c |
40 | #ifdef OLED_ENABLE | 40 | #ifdef OLED_ENABLE |
41 | void oled_task_user(void) { | 41 | bool oled_task_user(void) { |
42 | // Host Keyboard Layer Status | 42 | // Host Keyboard Layer Status |
43 | oled_write_P(PSTR("Layer: "), false); | 43 | oled_write_P(PSTR("Layer: "), false); |
44 | 44 | ||
@@ -62,6 +62,8 @@ void oled_task_user(void) { | |||
62 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 62 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
63 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 63 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
64 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 64 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
65 | |||
66 | return false; | ||
65 | } | 67 | } |
66 | #endif | 68 | #endif |
67 | ``` | 69 | ``` |
@@ -133,13 +135,14 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
133 | return rotation; | 135 | return rotation; |
134 | } | 136 | } |
135 | 137 | ||
136 | void oled_task_user(void) { | 138 | bool oled_task_user(void) { |
137 | if (is_keyboard_master()) { | 139 | if (is_keyboard_master()) { |
138 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 140 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
139 | } else { | 141 | } else { |
140 | render_logo(); // Renders a static logo | 142 | render_logo(); // Renders a static logo |
141 | oled_scroll_left(); // Turns on scrolling | 143 | oled_scroll_left(); // Turns on scrolling |
142 | } | 144 | } |
145 | return false; | ||
143 | } | 146 | } |
144 | #endif | 147 | #endif |
145 | ``` | 148 | ``` |
@@ -237,6 +240,7 @@ bool oled_init(oled_rotation_t rotation); | |||
237 | // Called at the start of oled_init, weak function overridable by the user | 240 | // Called at the start of oled_init, weak function overridable by the user |
238 | // rotation - the value passed into oled_init | 241 | // rotation - the value passed into oled_init |
239 | // Return new oled_rotation_t if you want to override default rotation | 242 | // Return new oled_rotation_t if you want to override default rotation |
243 | oled_rotation_t oled_init_kb(oled_rotation_t rotation); | ||
240 | oled_rotation_t oled_init_user(oled_rotation_t rotation); | 244 | oled_rotation_t oled_init_user(oled_rotation_t rotation); |
241 | 245 | ||
242 | // Clears the display buffer, resets cursor position to 0, and sets the buffer to dirty for rendering | 246 | // Clears the display buffer, resets cursor position to 0, and sets the buffer to dirty for rendering |
@@ -328,7 +332,8 @@ uint8_t oled_get_brightness(void); | |||
328 | void oled_task(void); | 332 | void oled_task(void); |
329 | 333 | ||
330 | // Called at the start of oled_task, weak function overridable by the user | 334 | // Called at the start of oled_task, weak function overridable by the user |
331 | void oled_task_user(void); | 335 | bool oled_task_kb(void); |
336 | bool oled_task_user(void); | ||
332 | 337 | ||
333 | // Set the specific 8 lines rows of the screen to scroll. | 338 | // Set the specific 8 lines rows of the screen to scroll. |
334 | // 0 is the default for start, and 7 for end, which is the entire | 339 | // 0 is the default for start, and 7 for end, which is the entire |
diff --git a/drivers/oled/oled_driver.h b/drivers/oled/oled_driver.h index 13b73ede9..3b56d370d 100644 --- a/drivers/oled/oled_driver.h +++ b/drivers/oled/oled_driver.h | |||
@@ -190,6 +190,7 @@ bool oled_init(oled_rotation_t rotation); | |||
190 | // Called at the start of oled_init, weak function overridable by the user | 190 | // Called at the start of oled_init, weak function overridable by the user |
191 | // rotation - the value passed into oled_init | 191 | // rotation - the value passed into oled_init |
192 | // Return new oled_rotation_t if you want to override default rotation | 192 | // Return new oled_rotation_t if you want to override default rotation |
193 | oled_rotation_t oled_init_kb(oled_rotation_t rotation); | ||
193 | oled_rotation_t oled_init_user(oled_rotation_t rotation); | 194 | oled_rotation_t oled_init_user(oled_rotation_t rotation); |
194 | 195 | ||
195 | // Clears the display buffer, resets cursor position to 0, and sets the buffer to dirty for rendering | 196 | // Clears the display buffer, resets cursor position to 0, and sets the buffer to dirty for rendering |
@@ -285,7 +286,8 @@ uint8_t oled_get_brightness(void); | |||
285 | void oled_task(void); | 286 | void oled_task(void); |
286 | 287 | ||
287 | // Called at the start of oled_task, weak function overridable by the user | 288 | // Called at the start of oled_task, weak function overridable by the user |
288 | void oled_task_user(void); | 289 | bool oled_task_kb(void); |
290 | bool oled_task_user(void); | ||
289 | 291 | ||
290 | // Set the specific 8 lines rows of the screen to scroll. | 292 | // Set the specific 8 lines rows of the screen to scroll. |
291 | // 0 is the default for start, and 7 for end, which is the entire | 293 | // 0 is the default for start, and 7 for end, which is the entire |
diff --git a/drivers/oled/ssd1306_sh1106.c b/drivers/oled/ssd1306_sh1106.c index e9049438f..d9bd3c14b 100644 --- a/drivers/oled/ssd1306_sh1106.c +++ b/drivers/oled/ssd1306_sh1106.c | |||
@@ -167,7 +167,7 @@ bool oled_init(oled_rotation_t rotation) { | |||
167 | } | 167 | } |
168 | #endif | 168 | #endif |
169 | 169 | ||
170 | oled_rotation = oled_init_user(rotation); | 170 | oled_rotation = oled_init_user(oled_init_kb(rotation)); |
171 | if (!HAS_FLAGS(oled_rotation, OLED_ROTATION_90)) { | 171 | if (!HAS_FLAGS(oled_rotation, OLED_ROTATION_90)) { |
172 | oled_rotation_width = OLED_DISPLAY_WIDTH; | 172 | oled_rotation_width = OLED_DISPLAY_WIDTH; |
173 | } else { | 173 | } else { |
@@ -232,6 +232,7 @@ bool oled_init(oled_rotation_t rotation) { | |||
232 | return true; | 232 | return true; |
233 | } | 233 | } |
234 | 234 | ||
235 | __attribute__((weak)) oled_rotation_t oled_init_kb(oled_rotation_t rotation) { return rotation; } | ||
235 | __attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { return rotation; } | 236 | __attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { return rotation; } |
236 | 237 | ||
237 | void oled_clear(void) { | 238 | void oled_clear(void) { |
@@ -741,11 +742,11 @@ void oled_task(void) { | |||
741 | if (timer_elapsed(oled_update_timeout) >= OLED_UPDATE_INTERVAL) { | 742 | if (timer_elapsed(oled_update_timeout) >= OLED_UPDATE_INTERVAL) { |
742 | oled_update_timeout = timer_read(); | 743 | oled_update_timeout = timer_read(); |
743 | oled_set_cursor(0, 0); | 744 | oled_set_cursor(0, 0); |
744 | oled_task_user(); | 745 | oled_task_kb(); |
745 | } | 746 | } |
746 | #else | 747 | #else |
747 | oled_set_cursor(0, 0); | 748 | oled_set_cursor(0, 0); |
748 | oled_task_user(); | 749 | oled_task_kb(); |
749 | #endif | 750 | #endif |
750 | 751 | ||
751 | #if OLED_SCROLL_TIMEOUT > 0 | 752 | #if OLED_SCROLL_TIMEOUT > 0 |
@@ -776,4 +777,5 @@ void oled_task(void) { | |||
776 | #endif | 777 | #endif |
777 | } | 778 | } |
778 | 779 | ||
779 | __attribute__((weak)) void oled_task_user(void) {} | 780 | __attribute__((weak)) bool oled_task_kb(void) { return oled_task_user(); } |
781 | __attribute__((weak)) bool oled_task_user(void) { return true; } | ||
diff --git a/keyboards/0xcb/1337/keymaps/conor/keymap.c b/keyboards/0xcb/1337/keymaps/conor/keymap.c index 63c3ea9f5..615ca7baf 100644 --- a/keyboards/0xcb/1337/keymaps/conor/keymap.c +++ b/keyboards/0xcb/1337/keymaps/conor/keymap.c | |||
@@ -168,7 +168,7 @@ static void render_rgbled_status(bool) { | |||
168 | oled_write_ln_P(PSTR("\n"), false); | 168 | oled_write_ln_P(PSTR("\n"), false); |
169 | } | 169 | } |
170 | } | 170 | } |
171 | void oled_task_user(void) { | 171 | bool oled_task_user(void) { |
172 | static bool finished_timer = false; | 172 | static bool finished_timer = false; |
173 | if (!finished_timer && (timer_elapsed(startup_timer) < 1000)) { | 173 | if (!finished_timer && (timer_elapsed(startup_timer) < 1000)) { |
174 | render_logo(); | 174 | render_logo(); |
@@ -181,5 +181,6 @@ void oled_task_user(void) { | |||
181 | render_rgbled_status(true); | 181 | render_rgbled_status(true); |
182 | render_logo_font(); | 182 | render_logo_font(); |
183 | } | 183 | } |
184 | return false; | ||
184 | } | 185 | } |
185 | #endif | 186 | #endif |
diff --git a/keyboards/0xcb/1337/keymaps/default/keymap.c b/keyboards/0xcb/1337/keymaps/default/keymap.c index b79ecb767..751af6f4f 100644 --- a/keyboards/0xcb/1337/keymaps/default/keymap.c +++ b/keyboards/0xcb/1337/keymaps/default/keymap.c | |||
@@ -159,7 +159,7 @@ static void render_rgbled_status(void) { | |||
159 | oled_write_ln_P(PSTR("\n"), false); | 159 | oled_write_ln_P(PSTR("\n"), false); |
160 | } | 160 | } |
161 | } | 161 | } |
162 | void oled_task_user(void) { | 162 | bool oled_task_user(void) { |
163 | static bool finished_timer = false; | 163 | static bool finished_timer = false; |
164 | if (!finished_timer && (timer_elapsed(startup_timer) < 1000)) { | 164 | if (!finished_timer && (timer_elapsed(startup_timer) < 1000)) { |
165 | render_logo(); | 165 | render_logo(); |
@@ -172,5 +172,6 @@ void oled_task_user(void) { | |||
172 | render_rgbled_status(); | 172 | render_rgbled_status(); |
173 | render_logo_font(); | 173 | render_logo_font(); |
174 | } | 174 | } |
175 | return false; | ||
175 | } | 176 | } |
176 | #endif | 177 | #endif |
diff --git a/keyboards/0xcb/1337/keymaps/jakob/keymap.c b/keyboards/0xcb/1337/keymaps/jakob/keymap.c index 190fee21c..f4a075844 100644 --- a/keyboards/0xcb/1337/keymaps/jakob/keymap.c +++ b/keyboards/0xcb/1337/keymaps/jakob/keymap.c | |||
@@ -168,7 +168,7 @@ static void render_rgbled_status(bool) { | |||
168 | oled_write_ln_P(PSTR("\n"), false); | 168 | oled_write_ln_P(PSTR("\n"), false); |
169 | } | 169 | } |
170 | } | 170 | } |
171 | void oled_task_user(void) { | 171 | bool oled_task_user(void) { |
172 | static bool finished_timer = false; | 172 | static bool finished_timer = false; |
173 | if (!finished_timer && (timer_elapsed(startup_timer) < 1000)) { | 173 | if (!finished_timer && (timer_elapsed(startup_timer) < 1000)) { |
174 | render_logo(); | 174 | render_logo(); |
@@ -181,5 +181,6 @@ void oled_task_user(void) { | |||
181 | render_rgbled_status(true); | 181 | render_rgbled_status(true); |
182 | render_logo_font(); | 182 | render_logo_font(); |
183 | } | 183 | } |
184 | return false; | ||
184 | } | 185 | } |
185 | #endif | 186 | #endif |
diff --git a/keyboards/0xcb/1337/keymaps/via/keymap.c b/keyboards/0xcb/1337/keymaps/via/keymap.c index eefa67ddb..a85670e06 100644 --- a/keyboards/0xcb/1337/keymaps/via/keymap.c +++ b/keyboards/0xcb/1337/keymaps/via/keymap.c | |||
@@ -168,7 +168,7 @@ static void render_rgbled_status(void) { | |||
168 | oled_write_ln_P(PSTR("\n"), false); | 168 | oled_write_ln_P(PSTR("\n"), false); |
169 | } | 169 | } |
170 | } | 170 | } |
171 | void oled_task_user(void) { | 171 | bool oled_task_user(void) { |
172 | static bool finished_timer = false; | 172 | static bool finished_timer = false; |
173 | if (!finished_timer && (timer_elapsed(startup_timer) < 1000)) { | 173 | if (!finished_timer && (timer_elapsed(startup_timer) < 1000)) { |
174 | render_logo(); | 174 | render_logo(); |
@@ -181,5 +181,6 @@ void oled_task_user(void) { | |||
181 | render_rgbled_status(); | 181 | render_rgbled_status(); |
182 | render_logo_font(); | 182 | render_logo_font(); |
183 | } | 183 | } |
184 | return false; | ||
184 | } | 185 | } |
185 | #endif | 186 | #endif |
diff --git a/keyboards/0xcb/static/keymaps/bongocat/keymap.c b/keyboards/0xcb/static/keymaps/bongocat/keymap.c index d7f6db08c..acdc52184 100644 --- a/keyboards/0xcb/static/keymaps/bongocat/keymap.c +++ b/keyboards/0xcb/static/keymaps/bongocat/keymap.c | |||
@@ -262,7 +262,7 @@ static void render_cat(void) { | |||
262 | } | 262 | } |
263 | } | 263 | } |
264 | 264 | ||
265 | void oled_task_user(void) { | 265 | bool oled_task_user(void) { |
266 | static bool finished_timer = false; | 266 | static bool finished_timer = false; |
267 | if (!finished_timer && (timer_elapsed(startup_timer) < 3000)) { | 267 | if (!finished_timer && (timer_elapsed(startup_timer) < 3000)) { |
268 | render_logo(); | 268 | render_logo(); |
@@ -286,6 +286,7 @@ void oled_task_user(void) { | |||
286 | render_layer(); | 286 | render_layer(); |
287 | } | 287 | } |
288 | } | 288 | } |
289 | return false; | ||
289 | } | 290 | } |
290 | #endif | 291 | #endif |
291 | 292 | ||
diff --git a/keyboards/0xcb/static/keymaps/default/keymap.c b/keyboards/0xcb/static/keymaps/default/keymap.c index 139c257e6..4d0d14ff7 100644 --- a/keyboards/0xcb/static/keymaps/default/keymap.c +++ b/keyboards/0xcb/static/keymaps/default/keymap.c | |||
@@ -175,7 +175,7 @@ static void render_layer(void) { | |||
175 | oled_write_P(logo[3][2], false); | 175 | oled_write_P(logo[3][2], false); |
176 | } | 176 | } |
177 | 177 | ||
178 | void oled_task_user(void) { | 178 | bool oled_task_user(void) { |
179 | static bool finished_timer = false; | 179 | static bool finished_timer = false; |
180 | if (!finished_timer && (timer_elapsed(startup_timer) < 3000)) { | 180 | if (!finished_timer && (timer_elapsed(startup_timer) < 3000)) { |
181 | render_logo(); | 181 | render_logo(); |
@@ -186,5 +186,6 @@ void oled_task_user(void) { | |||
186 | } | 186 | } |
187 | render_layer(); | 187 | render_layer(); |
188 | } | 188 | } |
189 | return false; | ||
189 | } | 190 | } |
190 | #endif | 191 | #endif |
diff --git a/keyboards/0xcb/static/keymaps/via/keymap.c b/keyboards/0xcb/static/keymaps/via/keymap.c index 6bb24c1fa..62fcca1f3 100644 --- a/keyboards/0xcb/static/keymaps/via/keymap.c +++ b/keyboards/0xcb/static/keymaps/via/keymap.c | |||
@@ -175,7 +175,7 @@ static void render_layer(void) { | |||
175 | oled_write_P(logo[3][2], false); | 175 | oled_write_P(logo[3][2], false); |
176 | } | 176 | } |
177 | 177 | ||
178 | void oled_task_user(void) { | 178 | bool oled_task_user(void) { |
179 | static bool finished_timer = false; | 179 | static bool finished_timer = false; |
180 | if (!finished_timer && (timer_elapsed(startup_timer) < 3000)) { | 180 | if (!finished_timer && (timer_elapsed(startup_timer) < 3000)) { |
181 | render_logo(); | 181 | render_logo(); |
@@ -186,6 +186,7 @@ void oled_task_user(void) { | |||
186 | } | 186 | } |
187 | render_layer(); | 187 | render_layer(); |
188 | } | 188 | } |
189 | return false; | ||
189 | } | 190 | } |
190 | #endif | 191 | #endif |
191 | 192 | ||
diff --git a/keyboards/10bleoledhub/keymaps/default/keymap.c b/keyboards/10bleoledhub/keymaps/default/keymap.c index 84c1f1068..806d91312 100644 --- a/keyboards/10bleoledhub/keymaps/default/keymap.c +++ b/keyboards/10bleoledhub/keymaps/default/keymap.c | |||
@@ -55,7 +55,10 @@ static void render_logo(void) { | |||
55 | } | 55 | } |
56 | 56 | ||
57 | #ifdef OLED_ENABLE | 57 | #ifdef OLED_ENABLE |
58 | void oled_task_user(void) { render_logo(); } | 58 | bool oled_task_user(void) { |
59 | render_logo(); | ||
60 | return false; | ||
61 | } | ||
59 | #endif | 62 | #endif |
60 | 63 | ||
61 | bool encoder_update_user(uint8_t index, bool clockwise) { | 64 | bool encoder_update_user(uint8_t index, bool clockwise) { |
diff --git a/keyboards/10bleoledhub/keymaps/via/keymap.c b/keyboards/10bleoledhub/keymaps/via/keymap.c index df7130e80..316819acf 100644 --- a/keyboards/10bleoledhub/keymaps/via/keymap.c +++ b/keyboards/10bleoledhub/keymaps/via/keymap.c | |||
@@ -55,7 +55,10 @@ static void render_logo(void) { | |||
55 | } | 55 | } |
56 | 56 | ||
57 | #ifdef OLED_ENABLE | 57 | #ifdef OLED_ENABLE |
58 | void oled_task_user(void) { render_logo(); } | 58 | bool oled_task_user(void) { |
59 | render_logo(); | ||
60 | return false; | ||
61 | } | ||
59 | #endif | 62 | #endif |
60 | 63 | ||
61 | bool encoder_update_user(uint8_t index, bool clockwise) { | 64 | bool encoder_update_user(uint8_t index, bool clockwise) { |
diff --git a/keyboards/aeboards/ext65/keymaps/default/keymap.c b/keyboards/aeboards/ext65/keymaps/default/keymap.c index 466b34539..1f933ca1c 100644 --- a/keyboards/aeboards/ext65/keymaps/default/keymap.c +++ b/keyboards/aeboards/ext65/keymaps/default/keymap.c | |||
@@ -89,10 +89,11 @@ void render_mod_status(uint8_t modifiers) { | |||
89 | oled_write_ln(PSTR(" "), false); | 89 | oled_write_ln(PSTR(" "), false); |
90 | } | 90 | } |
91 | 91 | ||
92 | void oled_task_user(void) { | 92 | bool oled_task_user(void) { |
93 | render_layer_state(); | 93 | render_layer_state(); |
94 | render_keylock_status(host_keyboard_led_state()); | 94 | render_keylock_status(host_keyboard_led_state()); |
95 | render_mod_status(get_mods()|get_oneshot_mods()); | 95 | render_mod_status(get_mods()|get_oneshot_mods()); |
96 | return false; | ||
96 | } | 97 | } |
97 | 98 | ||
98 | #endif | 99 | #endif |
diff --git a/keyboards/aeboards/ext65/keymaps/via/keymap.c b/keyboards/aeboards/ext65/keymaps/via/keymap.c index 466b34539..1f933ca1c 100644 --- a/keyboards/aeboards/ext65/keymaps/via/keymap.c +++ b/keyboards/aeboards/ext65/keymaps/via/keymap.c | |||
@@ -89,10 +89,11 @@ void render_mod_status(uint8_t modifiers) { | |||
89 | oled_write_ln(PSTR(" "), false); | 89 | oled_write_ln(PSTR(" "), false); |
90 | } | 90 | } |
91 | 91 | ||
92 | void oled_task_user(void) { | 92 | bool oled_task_user(void) { |
93 | render_layer_state(); | 93 | render_layer_state(); |
94 | render_keylock_status(host_keyboard_led_state()); | 94 | render_keylock_status(host_keyboard_led_state()); |
95 | render_mod_status(get_mods()|get_oneshot_mods()); | 95 | render_mod_status(get_mods()|get_oneshot_mods()); |
96 | return false; | ||
96 | } | 97 | } |
97 | 98 | ||
98 | #endif | 99 | #endif |
diff --git a/keyboards/aeboards/ext65/rev2/rev2.c b/keyboards/aeboards/ext65/rev2/rev2.c index ce16eb4c4..f303a122e 100644 --- a/keyboards/aeboards/ext65/rev2/rev2.c +++ b/keyboards/aeboards/ext65/rev2/rev2.c | |||
@@ -9,7 +9,7 @@ void board_init(void) { | |||
9 | SYSCFG->CFGR1 &= ~(SYSCFG_CFGR1_SPI2_DMA_RMP); | 9 | SYSCFG->CFGR1 &= ~(SYSCFG_CFGR1_SPI2_DMA_RMP); |
10 | } | 10 | } |
11 | 11 | ||
12 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 12 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
13 | return OLED_ROTATION_90; // rotates the display 90 degrees | 13 | return OLED_ROTATION_90; // rotates the display 90 degrees |
14 | } | 14 | } |
15 | 15 | ||
diff --git a/keyboards/aleblazer/zodiark/keymaps/default/keymap.c b/keyboards/aleblazer/zodiark/keymaps/default/keymap.c index 84953ec58..c6a81c67f 100644 --- a/keyboards/aleblazer/zodiark/keymaps/default/keymap.c +++ b/keyboards/aleblazer/zodiark/keymaps/default/keymap.c | |||
@@ -135,12 +135,13 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
135 | return rotation; | 135 | return rotation; |
136 | } | 136 | } |
137 | 137 | ||
138 | void oled_task_user(void) { | 138 | bool oled_task_user(void) { |
139 | if (is_keyboard_master()) { | 139 | if (is_keyboard_master()) { |
140 | print_status_narrow(); | 140 | print_status_narrow(); |
141 | } else { | 141 | } else { |
142 | render_logo(); | 142 | render_logo(); |
143 | } | 143 | } |
144 | return false; | ||
144 | } | 145 | } |
145 | 146 | ||
146 | #endif | 147 | #endif |
diff --git a/keyboards/aleblazer/zodiark/keymaps/slimoled/keymap.c b/keyboards/aleblazer/zodiark/keymaps/slimoled/keymap.c index 99c5c5e4e..ca8f91f1d 100644 --- a/keyboards/aleblazer/zodiark/keymaps/slimoled/keymap.c +++ b/keyboards/aleblazer/zodiark/keymaps/slimoled/keymap.c | |||
@@ -138,12 +138,13 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
138 | return rotation; | 138 | return rotation; |
139 | } | 139 | } |
140 | 140 | ||
141 | void oled_task_user(void) { | 141 | bool oled_task_user(void) { |
142 | if (is_keyboard_master()) { | 142 | if (is_keyboard_master()) { |
143 | print_status_narrow(); | 143 | print_status_narrow(); |
144 | } else { | 144 | } else { |
145 | render_logo(); | 145 | render_logo(); |
146 | } | 146 | } |
147 | return false; | ||
147 | } | 148 | } |
148 | 149 | ||
149 | #endif | 150 | #endif |
diff --git a/keyboards/aleblazer/zodiark/keymaps/via/oled.c b/keyboards/aleblazer/zodiark/keymaps/via/oled.c index 5e4959ab2..8642bacb0 100644 --- a/keyboards/aleblazer/zodiark/keymaps/via/oled.c +++ b/keyboards/aleblazer/zodiark/keymaps/via/oled.c | |||
@@ -67,12 +67,13 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
67 | return rotation; | 67 | return rotation; |
68 | } | 68 | } |
69 | 69 | ||
70 | void oled_task_user(void) { | 70 | bool oled_task_user(void) { |
71 | if (is_keyboard_master()) { | 71 | if (is_keyboard_master()) { |
72 | print_status_narrow(); | 72 | print_status_narrow(); |
73 | } else { | 73 | } else { |
74 | render_logo(); | 74 | render_logo(); |
75 | } | 75 | } |
76 | return false; | ||
76 | } | 77 | } |
77 | 78 | ||
78 | #endif | 79 | #endif |
diff --git a/keyboards/anavi/macropad8/keymaps/default/keymap.c b/keyboards/anavi/macropad8/keymaps/default/keymap.c index 5b69532e1..84be7f3c6 100644 --- a/keyboards/anavi/macropad8/keymaps/default/keymap.c +++ b/keyboards/anavi/macropad8/keymaps/default/keymap.c | |||
@@ -22,7 +22,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
22 | return OLED_ROTATION_180; // flips the display 180 degrees if offhand | 22 | return OLED_ROTATION_180; // flips the display 180 degrees if offhand |
23 | } | 23 | } |
24 | 24 | ||
25 | void oled_task_user(void) { | 25 | bool oled_task_user(void) { |
26 | // Host Keyboard Layer Status | 26 | // Host Keyboard Layer Status |
27 | oled_write_ln_P(PSTR("ANAVI Macro Pad 8"), false); | 27 | oled_write_ln_P(PSTR("ANAVI Macro Pad 8"), false); |
28 | oled_write_P(PSTR("Active layer: "), false); | 28 | oled_write_P(PSTR("Active layer: "), false); |
@@ -57,5 +57,6 @@ void oled_task_user(void) { | |||
57 | snprintf(rgbStatusLine2, sizeof(rgbStatusLine2), "h:%d s:%d v:%d", rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val()); | 57 | snprintf(rgbStatusLine2, sizeof(rgbStatusLine2), "h:%d s:%d v:%d", rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val()); |
58 | oled_write_ln(rgbStatusLine2, false); | 58 | oled_write_ln(rgbStatusLine2, false); |
59 | #endif | 59 | #endif |
60 | return false; | ||
60 | } | 61 | } |
61 | #endif | 62 | #endif |
diff --git a/keyboards/anavi/macropad8/keymaps/git/keymap.c b/keyboards/anavi/macropad8/keymaps/git/keymap.c index c1f1681ec..9b7afb5d6 100644 --- a/keyboards/anavi/macropad8/keymaps/git/keymap.c +++ b/keyboards/anavi/macropad8/keymaps/git/keymap.c | |||
@@ -105,7 +105,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
105 | return OLED_ROTATION_180; // flips the display 180 degrees if offhand | 105 | return OLED_ROTATION_180; // flips the display 180 degrees if offhand |
106 | } | 106 | } |
107 | 107 | ||
108 | void oled_task_user(void) { | 108 | bool oled_task_user(void) { |
109 | // Host Keyboard Layer Status | 109 | // Host Keyboard Layer Status |
110 | oled_write_ln_P(PSTR("ANAVI Macro Pad 8"), false); | 110 | oled_write_ln_P(PSTR("ANAVI Macro Pad 8"), false); |
111 | oled_write_P(PSTR("Active layer: "), false); | 111 | oled_write_P(PSTR("Active layer: "), false); |
@@ -140,5 +140,6 @@ void oled_task_user(void) { | |||
140 | snprintf(rgbStatusLine2, sizeof(rgbStatusLine2), "h:%d s:%d v:%d", rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val()); | 140 | snprintf(rgbStatusLine2, sizeof(rgbStatusLine2), "h:%d s:%d v:%d", rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val()); |
141 | oled_write_ln(rgbStatusLine2, false); | 141 | oled_write_ln(rgbStatusLine2, false); |
142 | #endif | 142 | #endif |
143 | return false; | ||
143 | } | 144 | } |
144 | #endif | 145 | #endif |
diff --git a/keyboards/anavi/macropad8/keymaps/kicad/keymap.c b/keyboards/anavi/macropad8/keymaps/kicad/keymap.c index ba4755034..e75d58847 100644 --- a/keyboards/anavi/macropad8/keymaps/kicad/keymap.c +++ b/keyboards/anavi/macropad8/keymaps/kicad/keymap.c | |||
@@ -75,7 +75,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
75 | return OLED_ROTATION_180; // flips the display 180 degrees if offhand | 75 | return OLED_ROTATION_180; // flips the display 180 degrees if offhand |
76 | } | 76 | } |
77 | 77 | ||
78 | void oled_task_user(void) { | 78 | bool oled_task_user(void) { |
79 | // Host Keyboard Layer Status | 79 | // Host Keyboard Layer Status |
80 | oled_write_ln_P(PSTR("ANAVI Macro Pad 8"), false); | 80 | oled_write_ln_P(PSTR("ANAVI Macro Pad 8"), false); |
81 | oled_write_P(PSTR("Layer: "), false); | 81 | oled_write_P(PSTR("Layer: "), false); |
@@ -113,5 +113,6 @@ void oled_task_user(void) { | |||
113 | snprintf(rgbStatusLine2, sizeof(rgbStatusLine2), "h:%d s:%d v:%d", rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val()); | 113 | snprintf(rgbStatusLine2, sizeof(rgbStatusLine2), "h:%d s:%d v:%d", rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val()); |
114 | oled_write_ln(rgbStatusLine2, false); | 114 | oled_write_ln(rgbStatusLine2, false); |
115 | #endif | 115 | #endif |
116 | return false; | ||
116 | } | 117 | } |
117 | #endif | 118 | #endif |
diff --git a/keyboards/anavi/macropad8/keymaps/kodi/keymap.c b/keyboards/anavi/macropad8/keymaps/kodi/keymap.c index 61cedc810..f99a22d72 100644 --- a/keyboards/anavi/macropad8/keymaps/kodi/keymap.c +++ b/keyboards/anavi/macropad8/keymaps/kodi/keymap.c | |||
@@ -41,7 +41,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
41 | return OLED_ROTATION_180; // flips the display 180 degrees if offhand | 41 | return OLED_ROTATION_180; // flips the display 180 degrees if offhand |
42 | } | 42 | } |
43 | 43 | ||
44 | void oled_task_user(void) { | 44 | bool oled_task_user(void) { |
45 | // Host Keyboard Layer Status | 45 | // Host Keyboard Layer Status |
46 | oled_write_ln_P(PSTR("ANAVI Macro Pad 8"), false); | 46 | oled_write_ln_P(PSTR("ANAVI Macro Pad 8"), false); |
47 | oled_write_P(PSTR("Active layer: "), false); | 47 | oled_write_P(PSTR("Active layer: "), false); |
@@ -76,5 +76,6 @@ void oled_task_user(void) { | |||
76 | snprintf(rgbStatusLine2, sizeof(rgbStatusLine2), "h:%d s:%d v:%d", rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val()); | 76 | snprintf(rgbStatusLine2, sizeof(rgbStatusLine2), "h:%d s:%d v:%d", rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val()); |
77 | oled_write_ln(rgbStatusLine2, false); | 77 | oled_write_ln(rgbStatusLine2, false); |
78 | #endif | 78 | #endif |
79 | return false; | ||
79 | } | 80 | } |
80 | #endif | 81 | #endif |
diff --git a/keyboards/anavi/macropad8/keymaps/obs/keymap.c b/keyboards/anavi/macropad8/keymaps/obs/keymap.c index e740482bb..1d9fd38ee 100644 --- a/keyboards/anavi/macropad8/keymaps/obs/keymap.c +++ b/keyboards/anavi/macropad8/keymaps/obs/keymap.c | |||
@@ -58,7 +58,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
58 | return OLED_ROTATION_180; // flips the display 180 degrees if offhand | 58 | return OLED_ROTATION_180; // flips the display 180 degrees if offhand |
59 | } | 59 | } |
60 | 60 | ||
61 | void oled_task_user(void) { | 61 | bool oled_task_user(void) { |
62 | // Host Keyboard Layer Status | 62 | // Host Keyboard Layer Status |
63 | oled_write_ln_P(PSTR("ANAVI Macro Pad 8"), false); | 63 | oled_write_ln_P(PSTR("ANAVI Macro Pad 8"), false); |
64 | oled_write_P(PSTR("Active layer: "), false); | 64 | oled_write_P(PSTR("Active layer: "), false); |
@@ -93,5 +93,6 @@ void oled_task_user(void) { | |||
93 | snprintf(rgbStatusLine2, sizeof(rgbStatusLine2), "h:%d s:%d v:%d", rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val()); | 93 | snprintf(rgbStatusLine2, sizeof(rgbStatusLine2), "h:%d s:%d v:%d", rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val()); |
94 | oled_write_ln(rgbStatusLine2, false); | 94 | oled_write_ln(rgbStatusLine2, false); |
95 | #endif | 95 | #endif |
96 | return false; | ||
96 | } | 97 | } |
97 | #endif | 98 | #endif |
diff --git a/keyboards/anavi/macropad8/keymaps/zoom/keymap.c b/keyboards/anavi/macropad8/keymaps/zoom/keymap.c index ef47102fa..965bbec42 100644 --- a/keyboards/anavi/macropad8/keymaps/zoom/keymap.c +++ b/keyboards/anavi/macropad8/keymaps/zoom/keymap.c | |||
@@ -57,7 +57,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
57 | return OLED_ROTATION_180; // flips the display 180 degrees if offhand | 57 | return OLED_ROTATION_180; // flips the display 180 degrees if offhand |
58 | } | 58 | } |
59 | 59 | ||
60 | void oled_task_user(void) { | 60 | bool oled_task_user(void) { |
61 | // Host Keyboard Layer Status | 61 | // Host Keyboard Layer Status |
62 | oled_write_ln_P(PSTR("ANAVI Macro Pad 8"), false); | 62 | oled_write_ln_P(PSTR("ANAVI Macro Pad 8"), false); |
63 | oled_write_P(PSTR("Active layer: "), false); | 63 | oled_write_P(PSTR("Active layer: "), false); |
@@ -92,5 +92,6 @@ void oled_task_user(void) { | |||
92 | snprintf(rgbStatusLine2, sizeof(rgbStatusLine2), "h:%d s:%d v:%d", rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val()); | 92 | snprintf(rgbStatusLine2, sizeof(rgbStatusLine2), "h:%d s:%d v:%d", rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val()); |
93 | oled_write_ln(rgbStatusLine2, false); | 93 | oled_write_ln(rgbStatusLine2, false); |
94 | #endif | 94 | #endif |
95 | return false; | ||
95 | } | 96 | } |
96 | #endif | 97 | #endif |
diff --git a/keyboards/angel64/alpha/keymaps/default/keymap.c b/keyboards/angel64/alpha/keymaps/default/keymap.c index 802ff138b..0f2a8dada 100644 --- a/keyboards/angel64/alpha/keymaps/default/keymap.c +++ b/keyboards/angel64/alpha/keymaps/default/keymap.c | |||
@@ -38,7 +38,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
38 | }; | 38 | }; |
39 | 39 | ||
40 | #ifdef OLED_ENABLE | 40 | #ifdef OLED_ENABLE |
41 | void oled_task_user(void) { | 41 | bool oled_task_user(void) { |
42 | oled_write_P(PSTR("Layer: "), false); | 42 | oled_write_P(PSTR("Layer: "), false); |
43 | switch (biton32(layer_state)) { | 43 | switch (biton32(layer_state)) { |
44 | case BASE: | 44 | case BASE: |
@@ -56,5 +56,6 @@ void oled_task_user(void) { | |||
56 | oled_write_P(IS_HOST_LED_ON(USB_LED_NUM_LOCK) ? PSTR("NUMLCK ") : PSTR(" "), false); | 56 | oled_write_P(IS_HOST_LED_ON(USB_LED_NUM_LOCK) ? PSTR("NUMLCK ") : PSTR(" "), false); |
57 | oled_write_P(IS_HOST_LED_ON(USB_LED_CAPS_LOCK) ? PSTR("CAPLCK ") : PSTR(" "), false); | 57 | oled_write_P(IS_HOST_LED_ON(USB_LED_CAPS_LOCK) ? PSTR("CAPLCK ") : PSTR(" "), false); |
58 | oled_write_P(IS_HOST_LED_ON(USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); | 58 | oled_write_P(IS_HOST_LED_ON(USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); |
59 | return false; | ||
59 | } | 60 | } |
60 | #endif | 61 | #endif |
diff --git a/keyboards/angel64/rev1/keymaps/default/keymap.c b/keyboards/angel64/rev1/keymaps/default/keymap.c index ff06e418c..7ad3964e2 100644 --- a/keyboards/angel64/rev1/keymaps/default/keymap.c +++ b/keyboards/angel64/rev1/keymaps/default/keymap.c | |||
@@ -25,10 +25,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
25 | }; | 25 | }; |
26 | 26 | ||
27 | #ifdef OLED_ENABLE | 27 | #ifdef OLED_ENABLE |
28 | void oled_task_user(void) { | 28 | bool oled_task_user(void) { |
29 | // Host Keyboard LED Status | 29 | // Host Keyboard LED Status |
30 | oled_write_P(IS_HOST_LED_ON(USB_LED_NUM_LOCK) ? PSTR("NUMLCK ") : PSTR(" "), false); | 30 | oled_write_P(IS_HOST_LED_ON(USB_LED_NUM_LOCK) ? PSTR("NUMLCK ") : PSTR(" "), false); |
31 | oled_write_P(IS_HOST_LED_ON(USB_LED_CAPS_LOCK) ? PSTR("CAPLCK ") : PSTR(" "), false); | 31 | oled_write_P(IS_HOST_LED_ON(USB_LED_CAPS_LOCK) ? PSTR("CAPLCK ") : PSTR(" "), false); |
32 | oled_write_P(IS_HOST_LED_ON(USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); | 32 | oled_write_P(IS_HOST_LED_ON(USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); |
33 | return false; | ||
33 | } | 34 | } |
34 | #endif | 35 | #endif |
diff --git a/keyboards/angel64/rev1/keymaps/kakunpc/keymap.c b/keyboards/angel64/rev1/keymaps/kakunpc/keymap.c index 3780c5e74..6c5184c1b 100644 --- a/keyboards/angel64/rev1/keymaps/kakunpc/keymap.c +++ b/keyboards/angel64/rev1/keymaps/kakunpc/keymap.c | |||
@@ -173,7 +173,7 @@ void matrix_scan_user(void) { | |||
173 | } | 173 | } |
174 | 174 | ||
175 | #ifdef OLED_ENABLE | 175 | #ifdef OLED_ENABLE |
176 | void oled_task_user(void) { | 176 | bool oled_task_user(void) { |
177 | oled_write_P(PSTR("Layer: "), false); | 177 | oled_write_P(PSTR("Layer: "), false); |
178 | switch (biton32(layer_state)) { | 178 | switch (biton32(layer_state)) { |
179 | case BASE: | 179 | case BASE: |
@@ -191,5 +191,6 @@ void oled_task_user(void) { | |||
191 | oled_write_P(IS_HOST_LED_ON(USB_LED_NUM_LOCK) ? PSTR("NUMLCK ") : PSTR(" "), false); | 191 | oled_write_P(IS_HOST_LED_ON(USB_LED_NUM_LOCK) ? PSTR("NUMLCK ") : PSTR(" "), false); |
192 | oled_write_P(IS_HOST_LED_ON(USB_LED_CAPS_LOCK) ? PSTR("CAPLCK ") : PSTR(" "), false); | 192 | oled_write_P(IS_HOST_LED_ON(USB_LED_CAPS_LOCK) ? PSTR("CAPLCK ") : PSTR(" "), false); |
193 | oled_write_P(IS_HOST_LED_ON(USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); | 193 | oled_write_P(IS_HOST_LED_ON(USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); |
194 | return false; | ||
194 | } | 195 | } |
195 | #endif | 196 | #endif |
diff --git a/keyboards/aplyard/aplx6/rev2/keymaps/default/keymap.c b/keyboards/aplyard/aplx6/rev2/keymaps/default/keymap.c index 5f3ec5b5d..9c8ac545b 100644 --- a/keyboards/aplyard/aplx6/rev2/keymaps/default/keymap.c +++ b/keyboards/aplyard/aplx6/rev2/keymaps/default/keymap.c | |||
@@ -113,8 +113,9 @@ static void render_logo(void) { | |||
113 | } | 113 | } |
114 | } | 114 | } |
115 | 115 | ||
116 | void oled_task_user(void) { | 116 | bool oled_task_user(void) { |
117 | render_logo(); | 117 | render_logo(); |
118 | return false; | ||
118 | } | 119 | } |
119 | #endif | 120 | #endif |
120 | 121 | ||
diff --git a/keyboards/arabica37/keymaps/default/keymap.c b/keyboards/arabica37/keymaps/default/keymap.c index 5a363152d..47c14379e 100644 --- a/keyboards/arabica37/keymaps/default/keymap.c +++ b/keyboards/arabica37/keymaps/default/keymap.c | |||
@@ -149,7 +149,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
149 | return rotation; | 149 | return rotation; |
150 | } | 150 | } |
151 | 151 | ||
152 | void oled_task_user(void) { | 152 | bool oled_task_user(void) { |
153 | void render_status(void) { | 153 | void render_status(void) { |
154 | // Host Keyboard Layer Status | 154 | // Host Keyboard Layer Status |
155 | oled_write_P(PSTR("Layer: "), false); | 155 | oled_write_P(PSTR("Layer: "), false); |
@@ -177,6 +177,7 @@ void oled_task_user(void) { | |||
177 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 177 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
178 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 178 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
179 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 179 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
180 | return false; | ||
180 | } | 181 | } |
181 | 182 | ||
182 | 183 | ||
diff --git a/keyboards/arch_36/keymaps/default/keymap.c b/keyboards/arch_36/keymaps/default/keymap.c index 5dff79206..797ca8798 100644 --- a/keyboards/arch_36/keymaps/default/keymap.c +++ b/keyboards/arch_36/keymaps/default/keymap.c | |||
@@ -298,12 +298,13 @@ static void render_logo(void) { | |||
298 | oled_write_raw_P(logo, 1024); | 298 | oled_write_raw_P(logo, 1024); |
299 | } | 299 | } |
300 | 300 | ||
301 | void oled_task_user(void) { | 301 | bool oled_task_user(void) { |
302 | if (is_keyboard_master()) { | 302 | if (is_keyboard_master()) { |
303 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 303 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
304 | } | 304 | } |
305 | else { | 305 | else { |
306 | render_logo(); | 306 | render_logo(); |
307 | } | 307 | } |
308 | return false; | ||
308 | } | 309 | } |
309 | #endif | 310 | #endif |
diff --git a/keyboards/arch_36/keymaps/obosob/keymap.c b/keyboards/arch_36/keymaps/obosob/keymap.c index 00e1a837b..104ee378f 100644 --- a/keyboards/arch_36/keymaps/obosob/keymap.c +++ b/keyboards/arch_36/keymaps/obosob/keymap.c | |||
@@ -807,12 +807,13 @@ static void render_logo(void) { | |||
807 | } | 807 | } |
808 | } | 808 | } |
809 | 809 | ||
810 | void oled_task_user(void) { | 810 | bool oled_task_user(void) { |
811 | if (is_keyboard_master()) { | 811 | if (is_keyboard_master()) { |
812 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 812 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
813 | } | 813 | } |
814 | else { | 814 | else { |
815 | render_logo(); | 815 | render_logo(); |
816 | } | 816 | } |
817 | return false; | ||
817 | } | 818 | } |
818 | #endif | 819 | #endif |
diff --git a/keyboards/basekeys/slice/keymaps/default/keymap.c b/keyboards/basekeys/slice/keymaps/default/keymap.c index ad5e9d9ff..c7fc3fed5 100644 --- a/keyboards/basekeys/slice/keymaps/default/keymap.c +++ b/keyboards/basekeys/slice/keymaps/default/keymap.c | |||
@@ -118,7 +118,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
118 | return isLeftHand ? OLED_ROTATION_180 : OLED_ROTATION_0; | 118 | return isLeftHand ? OLED_ROTATION_180 : OLED_ROTATION_0; |
119 | } | 119 | } |
120 | 120 | ||
121 | void oled_task_user(void) { | 121 | bool oled_task_user(void) { |
122 | if (is_keyboard_master()) { | 122 | if (is_keyboard_master()) { |
123 | // Host Keyboard Layer Status | 123 | // Host Keyboard Layer Status |
124 | oled_write_P(PSTR("Layer: "), false); | 124 | oled_write_P(PSTR("Layer: "), false); |
@@ -142,5 +142,6 @@ void oled_task_user(void) { | |||
142 | } else { | 142 | } else { |
143 | oled_write(read_logo(), false); | 143 | oled_write(read_logo(), false); |
144 | } | 144 | } |
145 | return false; | ||
145 | } | 146 | } |
146 | #endif | 147 | #endif |
diff --git a/keyboards/basekeys/slice/keymaps/default_split_left_space/keymap.c b/keyboards/basekeys/slice/keymaps/default_split_left_space/keymap.c index 54d41cc38..203bd0804 100644 --- a/keyboards/basekeys/slice/keymaps/default_split_left_space/keymap.c +++ b/keyboards/basekeys/slice/keymaps/default_split_left_space/keymap.c | |||
@@ -118,7 +118,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
118 | return isLeftHand ? OLED_ROTATION_180 : OLED_ROTATION_0; | 118 | return isLeftHand ? OLED_ROTATION_180 : OLED_ROTATION_0; |
119 | } | 119 | } |
120 | 120 | ||
121 | void oled_task_user(void) { | 121 | bool oled_task_user(void) { |
122 | if (is_keyboard_master()) { | 122 | if (is_keyboard_master()) { |
123 | // Host Keyboard Layer Status | 123 | // Host Keyboard Layer Status |
124 | oled_write_P(PSTR("Layer: "), false); | 124 | oled_write_P(PSTR("Layer: "), false); |
@@ -142,5 +142,6 @@ void oled_task_user(void) { | |||
142 | } else { | 142 | } else { |
143 | oled_write(read_logo(), false); | 143 | oled_write(read_logo(), false); |
144 | } | 144 | } |
145 | return false; | ||
145 | } | 146 | } |
146 | #endif | 147 | #endif |
diff --git a/keyboards/basekeys/slice/rev1_rgb/keymaps/2moons_rgb/keymap.c b/keyboards/basekeys/slice/rev1_rgb/keymaps/2moons_rgb/keymap.c index 55d914cbc..375daaca9 100644 --- a/keyboards/basekeys/slice/rev1_rgb/keymaps/2moons_rgb/keymap.c +++ b/keyboards/basekeys/slice/rev1_rgb/keymaps/2moons_rgb/keymap.c | |||
@@ -202,7 +202,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
202 | return isLeftHand ? OLED_ROTATION_180 : OLED_ROTATION_0; | 202 | return isLeftHand ? OLED_ROTATION_180 : OLED_ROTATION_0; |
203 | } | 203 | } |
204 | 204 | ||
205 | void oled_task_user(void) { | 205 | bool oled_task_user(void) { |
206 | if (is_keyboard_master()) { | 206 | if (is_keyboard_master()) { |
207 | // Host Keyboard Layer Status | 207 | // Host Keyboard Layer Status |
208 | oled_write_P(PSTR("Layer: "), false); | 208 | oled_write_P(PSTR("Layer: "), false); |
@@ -232,5 +232,6 @@ void oled_task_user(void) { | |||
232 | } else { | 232 | } else { |
233 | oled_write(read_logo(), false); | 233 | oled_write(read_logo(), false); |
234 | } | 234 | } |
235 | return false; | ||
235 | } | 236 | } |
236 | #endif | 237 | #endif |
diff --git a/keyboards/basekeys/slice/rev1_rgb/keymaps/via/keymap.c b/keyboards/basekeys/slice/rev1_rgb/keymaps/via/keymap.c index d0893ae86..fa5abd90a 100644 --- a/keyboards/basekeys/slice/rev1_rgb/keymaps/via/keymap.c +++ b/keyboards/basekeys/slice/rev1_rgb/keymaps/via/keymap.c | |||
@@ -99,7 +99,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
99 | return isLeftHand ? OLED_ROTATION_180 : OLED_ROTATION_0; | 99 | return isLeftHand ? OLED_ROTATION_180 : OLED_ROTATION_0; |
100 | } | 100 | } |
101 | 101 | ||
102 | void oled_task_user(void) { | 102 | bool oled_task_user(void) { |
103 | if (is_keyboard_master()) { | 103 | if (is_keyboard_master()) { |
104 | // Host Keyboard Layer Status | 104 | // Host Keyboard Layer Status |
105 | oled_write_P(PSTR("Layer: "), false); | 105 | oled_write_P(PSTR("Layer: "), false); |
@@ -123,5 +123,6 @@ void oled_task_user(void) { | |||
123 | } else { | 123 | } else { |
124 | render_qmk_logo(); | 124 | render_qmk_logo(); |
125 | } | 125 | } |
126 | return false; | ||
126 | } | 127 | } |
127 | #endif | 128 | #endif |
diff --git a/keyboards/boardsource/holiday/spooky/keymaps/rip_mx/keymap.c b/keyboards/boardsource/holiday/spooky/keymaps/rip_mx/keymap.c index a9065fdfa..eb56d1173 100644 --- a/keyboards/boardsource/holiday/spooky/keymaps/rip_mx/keymap.c +++ b/keyboards/boardsource/holiday/spooky/keymaps/rip_mx/keymap.c | |||
@@ -71,8 +71,9 @@ static void render_RIP(void) { | |||
71 | oled_write_raw_P(my_logo, sizeof(my_logo)); | 71 | oled_write_raw_P(my_logo, sizeof(my_logo)); |
72 | } | 72 | } |
73 | 73 | ||
74 | void oled_task_user(void) { | 74 | bool oled_task_user(void) { |
75 | render_RIP(); | 75 | render_RIP(); |
76 | return false; | ||
76 | } | 77 | } |
77 | 78 | ||
78 | #endif | 79 | #endif |
diff --git a/keyboards/boardsource/holiday/spooky/keymaps/rip_my_wallet/keymap.c b/keyboards/boardsource/holiday/spooky/keymaps/rip_my_wallet/keymap.c index c50e0b4b3..f8cac5087 100644 --- a/keyboards/boardsource/holiday/spooky/keymaps/rip_my_wallet/keymap.c +++ b/keyboards/boardsource/holiday/spooky/keymaps/rip_my_wallet/keymap.c | |||
@@ -71,8 +71,9 @@ static void render_RIP(void) { | |||
71 | oled_write_raw_P(my_logo, sizeof(my_logo)); | 71 | oled_write_raw_P(my_logo, sizeof(my_logo)); |
72 | } | 72 | } |
73 | 73 | ||
74 | void oled_task_user(void) { | 74 | bool oled_task_user(void) { |
75 | render_RIP(); | 75 | render_RIP(); |
76 | return false; | ||
76 | } | 77 | } |
77 | 78 | ||
78 | #endif | 79 | #endif |
diff --git a/keyboards/boardsource/microdox/keymaps/cole/keymap.c b/keyboards/boardsource/microdox/keymaps/cole/keymap.c index 8ea96e8f9..8ff570747 100644 --- a/keyboards/boardsource/microdox/keymaps/cole/keymap.c +++ b/keyboards/boardsource/microdox/keymaps/cole/keymap.c | |||
@@ -104,13 +104,14 @@ static void render_status(void) { | |||
104 | } | 104 | } |
105 | } | 105 | } |
106 | 106 | ||
107 | void oled_task_user(void) { | 107 | bool oled_task_user(void) { |
108 | if (is_keyboard_master()) { | 108 | if (is_keyboard_master()) { |
109 | render_status(); | 109 | render_status(); |
110 | } else { | 110 | } else { |
111 | render_logo(); | 111 | render_logo(); |
112 | oled_scroll_left(); | 112 | oled_scroll_left(); |
113 | } | 113 | } |
114 | return false; | ||
114 | } | 115 | } |
115 | 116 | ||
116 | #endif | 117 | #endif |
diff --git a/keyboards/boardsource/microdox/keymaps/via/keymap.c b/keyboards/boardsource/microdox/keymaps/via/keymap.c index 96e0a024f..e02fb0b6e 100644 --- a/keyboards/boardsource/microdox/keymaps/via/keymap.c +++ b/keyboards/boardsource/microdox/keymaps/via/keymap.c | |||
@@ -92,13 +92,14 @@ static void render_status(void) { | |||
92 | } | 92 | } |
93 | } | 93 | } |
94 | 94 | ||
95 | void oled_task_user(void) { | 95 | bool oled_task_user(void) { |
96 | if (is_keyboard_master()) { | 96 | if (is_keyboard_master()) { |
97 | render_status(); | 97 | render_status(); |
98 | } else { | 98 | } else { |
99 | render_logo(); | 99 | render_logo(); |
100 | oled_scroll_left(); | 100 | oled_scroll_left(); |
101 | } | 101 | } |
102 | return false; | ||
102 | } | 103 | } |
103 | 104 | ||
104 | #endif | 105 | #endif |
diff --git a/keyboards/boston_meetup/2019/2019.c b/keyboards/boston_meetup/2019/2019.c index 7428f1ccf..e558048f6 100644 --- a/keyboards/boston_meetup/2019/2019.c +++ b/keyboards/boston_meetup/2019/2019.c | |||
@@ -31,13 +31,12 @@ led_config_t g_led_config = { { | |||
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | #ifdef OLED_ENABLE | 33 | #ifdef OLED_ENABLE |
34 | __attribute__ ((weak)) | 34 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { return OLED_ROTATION_180; } |
35 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | ||
36 | return OLED_ROTATION_180; | ||
37 | } | ||
38 | 35 | ||
39 | __attribute__ ((weak)) | 36 | bool oled_task_kb(void) { |
40 | void oled_task_user(void) { | 37 | if (!oled_task_user()) { |
38 | return false; | ||
39 | } | ||
41 | oled_write_P(PSTR("BOSTON MK LAYER"), false); | 40 | oled_write_P(PSTR("BOSTON MK LAYER"), false); |
42 | oled_advance_char(); | 41 | oled_advance_char(); |
43 | oled_write_char(get_highest_layer(layer_state) + 0x30, true); | 42 | oled_write_char(get_highest_layer(layer_state) + 0x30, true); |
@@ -94,5 +93,6 @@ void oled_task_user(void) { | |||
94 | for (uint8_t y = 0; y < 8; y++) { | 93 | for (uint8_t y = 0; y < 8; y++) { |
95 | oled_write_pixel(95, 0 + y, true); | 94 | oled_write_pixel(95, 0 + y, true); |
96 | } | 95 | } |
96 | return false; | ||
97 | } | 97 | } |
98 | #endif | 98 | #endif |
diff --git a/keyboards/business_card/alpha/keymaps/default/keymap.c b/keyboards/business_card/alpha/keymaps/default/keymap.c index 6bf201655..64070d23d 100644 --- a/keyboards/business_card/alpha/keymaps/default/keymap.c +++ b/keyboards/business_card/alpha/keymaps/default/keymap.c | |||
@@ -39,5 +39,8 @@ static void render_logo(void) { | |||
39 | 39 | ||
40 | oled_write_P(qmk_logo, false); | 40 | oled_write_P(qmk_logo, false); |
41 | } | 41 | } |
42 | void oled_task_user(void) { render_logo(); } | 42 | bool oled_task_user(void) { |
43 | render_logo(); | ||
44 | return false; | ||
45 | } | ||
43 | #endif | 46 | #endif |
diff --git a/keyboards/business_card/beta/keymaps/default/keymap.c b/keyboards/business_card/beta/keymaps/default/keymap.c index beff48d98..8d2413477 100644 --- a/keyboards/business_card/beta/keymaps/default/keymap.c +++ b/keyboards/business_card/beta/keymaps/default/keymap.c | |||
@@ -38,5 +38,8 @@ static void render_logo(void) { | |||
38 | 38 | ||
39 | oled_write_P(qmk_logo, false); | 39 | oled_write_P(qmk_logo, false); |
40 | } | 40 | } |
41 | void oled_task_user(void) { render_logo(); } | 41 | bool oled_task_user(void) { |
42 | render_logo(); | ||
43 | return false; | ||
44 | } | ||
42 | #endif | 45 | #endif |
diff --git a/keyboards/cannonkeys/satisfaction75/satisfaction_oled.c b/keyboards/cannonkeys/satisfaction75/satisfaction_oled.c index 443482eac..fff8b65bd 100644 --- a/keyboards/cannonkeys/satisfaction75/satisfaction_oled.c +++ b/keyboards/cannonkeys/satisfaction75/satisfaction_oled.c | |||
@@ -5,16 +5,17 @@ void draw_clock(void); | |||
5 | 5 | ||
6 | #ifdef OLED_ENABLE | 6 | #ifdef OLED_ENABLE |
7 | 7 | ||
8 | __attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_0; } | 8 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { return OLED_ROTATION_0; } |
9 | 9 | ||
10 | __attribute__((weak)) void oled_task_user(void) { | 10 | bool oled_task_kb(void) { |
11 | if (!oled_task_user()) { return false; } | ||
11 | if (!oled_task_needs_to_repaint()) { | 12 | if (!oled_task_needs_to_repaint()) { |
12 | return; | 13 | return false; |
13 | } | 14 | } |
14 | oled_clear(); | 15 | oled_clear(); |
15 | if (clock_set_mode) { | 16 | if (clock_set_mode) { |
16 | draw_clock(); | 17 | draw_clock(); |
17 | return; | 18 | return false;; |
18 | } | 19 | } |
19 | switch (oled_mode) { | 20 | switch (oled_mode) { |
20 | default: | 21 | default: |
@@ -25,6 +26,7 @@ __attribute__((weak)) void oled_task_user(void) { | |||
25 | draw_clock(); | 26 | draw_clock(); |
26 | break; | 27 | break; |
27 | } | 28 | } |
29 | return false; | ||
28 | } | 30 | } |
29 | 31 | ||
30 | // Request a repaint of the OLED image without resetting the OLED sleep timer. | 32 | // Request a repaint of the OLED image without resetting the OLED sleep timer. |
diff --git a/keyboards/cassette42/keymaps/default/keymap.c b/keyboards/cassette42/keymaps/default/keymap.c index b678ccf9b..4943be9c7 100644 --- a/keyboards/cassette42/keymaps/default/keymap.c +++ b/keyboards/cassette42/keymaps/default/keymap.c | |||
@@ -101,12 +101,13 @@ void render_status(void) { | |||
101 | RENDER_LED_STATUS(); | 101 | RENDER_LED_STATUS(); |
102 | } | 102 | } |
103 | 103 | ||
104 | void oled_task_user(void) { | 104 | bool oled_task_user(void) { |
105 | if (is_keyboard_master()) { | 105 | if (is_keyboard_master()) { |
106 | render_status(); | 106 | render_status(); |
107 | } else { | 107 | } else { |
108 | render_logo(); | 108 | render_logo(); |
109 | } | 109 | } |
110 | return false; | ||
110 | } | 111 | } |
111 | #endif | 112 | #endif |
112 | 113 | ||
diff --git a/keyboards/chidori/keymaps/oled_sample/keymap.c b/keyboards/chidori/keymaps/oled_sample/keymap.c index a3bb7c280..78107a18e 100644 --- a/keyboards/chidori/keymaps/oled_sample/keymap.c +++ b/keyboards/chidori/keymaps/oled_sample/keymap.c | |||
@@ -210,8 +210,9 @@ void oled_write_layer_state(void) { | |||
210 | } | 210 | } |
211 | } | 211 | } |
212 | 212 | ||
213 | void oled_task_user(void) { | 213 | bool oled_task_user(void) { |
214 | // If you want to change the display of OLED, you need to change here | 214 | // If you want to change the display of OLED, you need to change here |
215 | oled_write_layer_state(); | 215 | oled_write_layer_state(); |
216 | return false; | ||
216 | } | 217 | } |
217 | #endif | 218 | #endif |
diff --git a/keyboards/ckeys/washington/keymaps/default/keymap.c b/keyboards/ckeys/washington/keymaps/default/keymap.c index a83a28e95..771905814 100644 --- a/keyboards/ckeys/washington/keymaps/default/keymap.c +++ b/keyboards/ckeys/washington/keymaps/default/keymap.c | |||
@@ -59,7 +59,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) { | |||
59 | } | 59 | } |
60 | 60 | ||
61 | #ifdef OLED_ENABLE | 61 | #ifdef OLED_ENABLE |
62 | void oled_task_user(void) { | 62 | bool oled_task_user(void) { |
63 | // Host Keyboard Layer Status | 63 | // Host Keyboard Layer Status |
64 | oled_write_P(PSTR("Layer: "), false); | 64 | oled_write_P(PSTR("Layer: "), false); |
65 | switch (biton32(layer_state)) { | 65 | switch (biton32(layer_state)) { |
@@ -79,5 +79,6 @@ void oled_task_user(void) { | |||
79 | oled_write_P(IS_LED_ON(usb_led, USB_LED_NUM_LOCK) ? PSTR("NUMLCK ") : PSTR(" "), false); | 79 | oled_write_P(IS_LED_ON(usb_led, USB_LED_NUM_LOCK) ? PSTR("NUMLCK ") : PSTR(" "), false); |
80 | oled_write_P(IS_LED_ON(usb_led, USB_LED_CAPS_LOCK) ? PSTR("CAPLCK ") : PSTR(" "), false); | 80 | oled_write_P(IS_LED_ON(usb_led, USB_LED_CAPS_LOCK) ? PSTR("CAPLCK ") : PSTR(" "), false); |
81 | oled_write_P(IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); | 81 | oled_write_P(IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); |
82 | return false; | ||
82 | } | 83 | } |
83 | #endif | 84 | #endif |
diff --git a/keyboards/claw44/keymaps/oled/keymap.c b/keyboards/claw44/keymaps/oled/keymap.c index 07cb58171..1778ac616 100644 --- a/keyboards/claw44/keymaps/oled/keymap.c +++ b/keyboards/claw44/keymaps/oled/keymap.c | |||
@@ -140,7 +140,7 @@ void set_keylog(uint16_t keycode, keyrecord_t *record) { | |||
140 | const char *read_keylog(void) { return keylog_str; } | 140 | const char *read_keylog(void) { return keylog_str; } |
141 | const char *read_keylogs(void) { return keylogs_str; } | 141 | const char *read_keylogs(void) { return keylogs_str; } |
142 | 142 | ||
143 | void oled_task_user(void) { | 143 | bool oled_task_user(void) { |
144 | if (is_keyboard_master()) { | 144 | if (is_keyboard_master()) { |
145 | render_layer_state(); | 145 | render_layer_state(); |
146 | oled_write_ln(read_keylog(), false); | 146 | oled_write_ln(read_keylog(), false); |
@@ -148,6 +148,7 @@ void oled_task_user(void) { | |||
148 | } else { | 148 | } else { |
149 | render_logo(); | 149 | render_logo(); |
150 | } | 150 | } |
151 | return false; | ||
151 | } | 152 | } |
152 | 153 | ||
153 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 154 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
diff --git a/keyboards/crkbd/keymaps/armand1m/keymap.c b/keyboards/crkbd/keymaps/armand1m/keymap.c index a37862fad..3caee1c82 100644 --- a/keyboards/crkbd/keymaps/armand1m/keymap.c +++ b/keyboards/crkbd/keymaps/armand1m/keymap.c | |||
@@ -130,7 +130,8 @@ void oled_render_amsterdam_flag(void) { | |||
130 | oled_write_raw_P(amsterdam_flag, sizeof(amsterdam_flag)); | 130 | oled_write_raw_P(amsterdam_flag, sizeof(amsterdam_flag)); |
131 | } | 131 | } |
132 | 132 | ||
133 | void oled_task_user(void) { | 133 | bool oled_task_user(void) { |
134 | oled_render_amsterdam_flag(); | 134 | oled_render_amsterdam_flag(); |
135 | return false; | ||
135 | } | 136 | } |
136 | #endif // OLED_ENABLE | 137 | #endif // OLED_ENABLE |
diff --git a/keyboards/crkbd/keymaps/blipson/keymap.c b/keyboards/crkbd/keymaps/blipson/keymap.c index 23491e11a..ad7664c29 100644 --- a/keyboards/crkbd/keymaps/blipson/keymap.c +++ b/keyboards/crkbd/keymaps/blipson/keymap.c | |||
@@ -128,12 +128,13 @@ void oled_render_logo(void) { | |||
128 | oled_write_P(crkbd_logo, false); | 128 | oled_write_P(crkbd_logo, false); |
129 | } | 129 | } |
130 | 130 | ||
131 | void oled_task_user(void) { | 131 | bool oled_task_user(void) { |
132 | if (is_keyboard_master()) { | 132 | if (is_keyboard_master()) { |
133 | oled_render_layer_state(); | 133 | oled_render_layer_state(); |
134 | } else { | 134 | } else { |
135 | oled_render_logo(); | 135 | oled_render_logo(); |
136 | } | 136 | } |
137 | return false; | ||
137 | } | 138 | } |
138 | 139 | ||
139 | #endif // OLED_ENABLE | 140 | #endif // OLED_ENABLE |
diff --git a/keyboards/crkbd/keymaps/default/keymap.c b/keyboards/crkbd/keymaps/default/keymap.c index 88d40ee40..e06cfa346 100644 --- a/keyboards/crkbd/keymaps/default/keymap.c +++ b/keyboards/crkbd/keymaps/default/keymap.c | |||
@@ -157,13 +157,14 @@ void oled_render_logo(void) { | |||
157 | oled_write_P(crkbd_logo, false); | 157 | oled_write_P(crkbd_logo, false); |
158 | } | 158 | } |
159 | 159 | ||
160 | void oled_task_user(void) { | 160 | bool oled_task_user(void) { |
161 | if (is_keyboard_master()) { | 161 | if (is_keyboard_master()) { |
162 | oled_render_layer_state(); | 162 | oled_render_layer_state(); |
163 | oled_render_keylog(); | 163 | oled_render_keylog(); |
164 | } else { | 164 | } else { |
165 | oled_render_logo(); | 165 | oled_render_logo(); |
166 | } | 166 | } |
167 | return false; | ||
167 | } | 168 | } |
168 | 169 | ||
169 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 170 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
diff --git a/keyboards/crkbd/keymaps/devdev/keymap.c b/keyboards/crkbd/keymaps/devdev/keymap.c index aa4d39a25..a50629574 100644 --- a/keyboards/crkbd/keymaps/devdev/keymap.c +++ b/keyboards/crkbd/keymaps/devdev/keymap.c | |||
@@ -392,13 +392,14 @@ void oled_render_logo(void) { | |||
392 | oled_write_P(crkbd_logo, false); | 392 | oled_write_P(crkbd_logo, false); |
393 | } | 393 | } |
394 | 394 | ||
395 | void oled_task_user(void) { | 395 | bool oled_task_user(void) { |
396 | if (is_master) { | 396 | if (is_master) { |
397 | oled_render_layer_state(); | 397 | oled_render_layer_state(); |
398 | oled_render_keylog(); | 398 | oled_render_keylog(); |
399 | } else { | 399 | } else { |
400 | oled_render_logo(); | 400 | oled_render_logo(); |
401 | } | 401 | } |
402 | return false; | ||
402 | } | 403 | } |
403 | 404 | ||
404 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 405 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
diff --git a/keyboards/crkbd/keymaps/dsanchezseco/keymap.c b/keyboards/crkbd/keymaps/dsanchezseco/keymap.c index 11690b029..6ef428a11 100644 --- a/keyboards/crkbd/keymaps/dsanchezseco/keymap.c +++ b/keyboards/crkbd/keymaps/dsanchezseco/keymap.c | |||
@@ -83,7 +83,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
83 | } | 83 | } |
84 | 84 | ||
85 | const char *read_logo(void); | 85 | const char *read_logo(void); |
86 | void oled_task_user(void){ | 86 | bool oled_task_user(void){ |
87 | switch (biton32(layer_state)){ | 87 | switch (biton32(layer_state)){ |
88 | case _DVORAK: | 88 | case _DVORAK: |
89 | oled_write_ln_P(PSTR("DVRK"), false); | 89 | oled_write_ln_P(PSTR("DVRK"), false); |
@@ -102,5 +102,6 @@ void oled_task_user(void){ | |||
102 | } | 102 | } |
103 | //now print logo | 103 | //now print logo |
104 | oled_write(read_logo(), false); | 104 | oled_write(read_logo(), false); |
105 | return false; | ||
105 | } | 106 | } |
106 | #endif | 107 | #endif |
diff --git a/keyboards/crkbd/keymaps/edvorakjp/oled.c b/keyboards/crkbd/keymaps/edvorakjp/oled.c index 3a3748c69..e5ff02956 100644 --- a/keyboards/crkbd/keymaps/edvorakjp/oled.c +++ b/keyboards/crkbd/keymaps/edvorakjp/oled.c | |||
@@ -43,7 +43,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
43 | return is_keyboard_left() ? rotation : rotation ^ OLED_ROTATION_180; | 43 | return is_keyboard_left() ? rotation : rotation ^ OLED_ROTATION_180; |
44 | } | 44 | } |
45 | 45 | ||
46 | void oled_task_user(void) { | 46 | bool oled_task_user(void) { |
47 | if (is_keyboard_left()) { | 47 | if (is_keyboard_left()) { |
48 | render_mode_icon(!get_enable_kc_lang()); | 48 | render_mode_icon(!get_enable_kc_lang()); |
49 | render_layer_state(); | 49 | render_layer_state(); |
@@ -51,5 +51,6 @@ void oled_task_user(void) { | |||
51 | } else { | 51 | } else { |
52 | render_logo(); | 52 | render_logo(); |
53 | } | 53 | } |
54 | return false; | ||
54 | } | 55 | } |
55 | #endif // OLED_ENABLE | 56 | #endif // OLED_ENABLE |
diff --git a/keyboards/crkbd/keymaps/gotham/oled.c b/keyboards/crkbd/keymaps/gotham/oled.c index 4d2c10b60..baacc86b1 100644 --- a/keyboards/crkbd/keymaps/gotham/oled.c +++ b/keyboards/crkbd/keymaps/gotham/oled.c | |||
@@ -246,7 +246,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
246 | return OLED_ROTATION_270; | 246 | return OLED_ROTATION_270; |
247 | } | 247 | } |
248 | 248 | ||
249 | void oled_task_user(void) { | 249 | bool oled_task_user(void) { |
250 | if (timer_elapsed(oled_timer) > 10000) { | 250 | if (timer_elapsed(oled_timer) > 10000) { |
251 | oled_off(); | 251 | oled_off(); |
252 | return; | 252 | return; |
@@ -262,4 +262,5 @@ void oled_task_user(void) { | |||
262 | } else { | 262 | } else { |
263 | render_status_secondary(); | 263 | render_status_secondary(); |
264 | } | 264 | } |
265 | return false; | ||
265 | } | 266 | } |
diff --git a/keyboards/crkbd/keymaps/kidbrazil/keymap.c b/keyboards/crkbd/keymaps/kidbrazil/keymap.c index 7cb08f40d..219db2243 100644 --- a/keyboards/crkbd/keymaps/kidbrazil/keymap.c +++ b/keyboards/crkbd/keymaps/kidbrazil/keymap.c | |||
@@ -172,7 +172,7 @@ void render_slave_oled(void) { | |||
172 | } | 172 | } |
173 | 173 | ||
174 | // {OLED Task} -----------------------------------------------// | 174 | // {OLED Task} -----------------------------------------------// |
175 | void oled_task_user(void) { | 175 | bool oled_task_user(void) { |
176 | // First time out switches to logo as first indication of iddle. | 176 | // First time out switches to logo as first indication of iddle. |
177 | if (timer_elapsed32(oled_timer) > 100000 && timer_elapsed32(oled_timer) < 479999) { | 177 | if (timer_elapsed32(oled_timer) > 100000 && timer_elapsed32(oled_timer) < 479999) { |
178 | // Render logo on both halves before full timeout | 178 | // Render logo on both halves before full timeout |
@@ -209,5 +209,6 @@ void oled_task_user(void) { | |||
209 | } | 209 | } |
210 | } | 210 | } |
211 | } | 211 | } |
212 | return false; | ||
212 | } | 213 | } |
213 | #endif | 214 | #endif |
diff --git a/keyboards/crkbd/keymaps/mcrown/oled.c b/keyboards/crkbd/keymaps/mcrown/oled.c index b728a5806..9623b921a 100644 --- a/keyboards/crkbd/keymaps/mcrown/oled.c +++ b/keyboards/crkbd/keymaps/mcrown/oled.c | |||
@@ -308,7 +308,7 @@ static void render_logo(void){ | |||
308 | * @param void. | 308 | * @param void. |
309 | * @return void. | 309 | * @return void. |
310 | */ | 310 | */ |
311 | void oled_task_user(void){ | 311 | bool oled_task_user(void){ |
312 | if (timer_elapsed32(standby_oled_timer) > 15000){ | 312 | if (timer_elapsed32(standby_oled_timer) > 15000){ |
313 | oled_off(); | 313 | oled_off(); |
314 | }else{ | 314 | }else{ |
@@ -321,6 +321,7 @@ void oled_task_user(void){ | |||
321 | oled_scroll_left(); | 321 | oled_scroll_left(); |
322 | } | 322 | } |
323 | } | 323 | } |
324 | return false; | ||
324 | } | 325 | } |
325 | 326 | ||
326 | /** @brief process the current key and add it to the keylog string. | 327 | /** @brief process the current key and add it to the keylog string. |
diff --git a/keyboards/crkbd/keymaps/oled_sample/keymap.c b/keyboards/crkbd/keymaps/oled_sample/keymap.c index 14b453585..9daae9607 100644 --- a/keyboards/crkbd/keymaps/oled_sample/keymap.c +++ b/keyboards/crkbd/keymaps/oled_sample/keymap.c | |||
@@ -190,13 +190,14 @@ void render_status_main(void) { | |||
190 | render_keylogger_status(); | 190 | render_keylogger_status(); |
191 | } | 191 | } |
192 | 192 | ||
193 | void oled_task_user(void) { | 193 | bool oled_task_user(void) { |
194 | update_log(); | 194 | update_log(); |
195 | if (is_keyboard_master()) { | 195 | if (is_keyboard_master()) { |
196 | render_status_main(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 196 | render_status_main(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
197 | } else { | 197 | } else { |
198 | render_crkbd_logo(); | 198 | render_crkbd_logo(); |
199 | } | 199 | } |
200 | return false; | ||
200 | } | 201 | } |
201 | 202 | ||
202 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 203 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
diff --git a/keyboards/crkbd/keymaps/oo/keymap.c b/keyboards/crkbd/keymaps/oo/keymap.c index c0416d972..bcc296c8b 100644 --- a/keyboards/crkbd/keymaps/oo/keymap.c +++ b/keyboards/crkbd/keymaps/oo/keymap.c | |||
@@ -148,13 +148,14 @@ void oled_render_logo(void) { | |||
148 | oled_write_P(crkbd_logo, false); | 148 | oled_write_P(crkbd_logo, false); |
149 | } | 149 | } |
150 | 150 | ||
151 | void oled_task_user(void) { | 151 | bool oled_task_user(void) { |
152 | if (is_keyboard_master()) { | 152 | if (is_keyboard_master()) { |
153 | oled_render_layer_state(); | 153 | oled_render_layer_state(); |
154 | oled_render_keylog(); | 154 | oled_render_keylog(); |
155 | } else { | 155 | } else { |
156 | oled_render_logo(); | 156 | oled_render_logo(); |
157 | } | 157 | } |
158 | return false; | ||
158 | } | 159 | } |
159 | 160 | ||
160 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 161 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
diff --git a/keyboards/crkbd/keymaps/rarick/keymap.c b/keyboards/crkbd/keymaps/rarick/keymap.c index b11bac1e7..adf955542 100644 --- a/keyboards/crkbd/keymaps/rarick/keymap.c +++ b/keyboards/crkbd/keymaps/rarick/keymap.c | |||
@@ -158,13 +158,14 @@ void oled_render_logo(void) { | |||
158 | oled_write_P(crkbd_logo, false); | 158 | oled_write_P(crkbd_logo, false); |
159 | } | 159 | } |
160 | 160 | ||
161 | void oled_task_user(void) { | 161 | bool oled_task_user(void) { |
162 | if (is_keyboard_master()) { | 162 | if (is_keyboard_master()) { |
163 | oled_render_layer_state(); | 163 | oled_render_layer_state(); |
164 | oled_render_keylog(); | 164 | oled_render_keylog(); |
165 | } else { | 165 | } else { |
166 | oled_render_logo(); | 166 | oled_render_logo(); |
167 | } | 167 | } |
168 | return false; | ||
168 | } | 169 | } |
169 | 170 | ||
170 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 171 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
diff --git a/keyboards/crkbd/keymaps/rjhilgefort/keymap.c b/keyboards/crkbd/keymaps/rjhilgefort/keymap.c index 7ca234a0e..a753b2b87 100644 --- a/keyboards/crkbd/keymaps/rjhilgefort/keymap.c +++ b/keyboards/crkbd/keymaps/rjhilgefort/keymap.c | |||
@@ -204,13 +204,14 @@ void oled_render_logo(void) { | |||
204 | oled_write_P(crkbd_logo, false); | 204 | oled_write_P(crkbd_logo, false); |
205 | } | 205 | } |
206 | 206 | ||
207 | void oled_task_user(void) { | 207 | bool oled_task_user(void) { |
208 | if (is_keyboard_master()) { | 208 | if (is_keyboard_master()) { |
209 | oled_render_layer_state(); | 209 | oled_render_layer_state(); |
210 | oled_render_keylog(); | 210 | oled_render_keylog(); |
211 | } else { | 211 | } else { |
212 | oled_render_logo(); | 212 | oled_render_logo(); |
213 | } | 213 | } |
214 | return false; | ||
214 | } | 215 | } |
215 | 216 | ||
216 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 217 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
diff --git a/keyboards/crkbd/keymaps/rpbaptist/keymap.c b/keyboards/crkbd/keymaps/rpbaptist/keymap.c index d632e255d..a098c73d2 100644 --- a/keyboards/crkbd/keymaps/rpbaptist/keymap.c +++ b/keyboards/crkbd/keymaps/rpbaptist/keymap.c | |||
@@ -290,7 +290,7 @@ void render_status(void) { | |||
290 | # endif | 290 | # endif |
291 | } | 291 | } |
292 | 292 | ||
293 | void oled_task_user(void) { | 293 | bool oled_task_user(void) { |
294 | if (timer_elapsed32(oled_timer) > OLED_TIMEOUT) { | 294 | if (timer_elapsed32(oled_timer) > OLED_TIMEOUT) { |
295 | oled_off(); | 295 | oled_off(); |
296 | return; | 296 | return; |
@@ -310,6 +310,7 @@ void oled_task_user(void) { | |||
310 | } | 310 | } |
311 | #endif | 311 | #endif |
312 | } | 312 | } |
313 | return false; | ||
313 | } | 314 | } |
314 | #endif | 315 | #endif |
315 | 316 | ||
diff --git a/keyboards/crkbd/keymaps/soundmonster/keymap.c b/keyboards/crkbd/keymaps/soundmonster/keymap.c index 67cfa78f9..98afe3685 100644 --- a/keyboards/crkbd/keymaps/soundmonster/keymap.c +++ b/keyboards/crkbd/keymaps/soundmonster/keymap.c | |||
@@ -300,7 +300,7 @@ void suspend_power_down_user() { | |||
300 | oled_off(); | 300 | oled_off(); |
301 | } | 301 | } |
302 | 302 | ||
303 | void oled_task_user(void) { | 303 | bool oled_task_user(void) { |
304 | if (timer_elapsed32(oled_timer) > 30000) { | 304 | if (timer_elapsed32(oled_timer) > 30000) { |
305 | oled_off(); | 305 | oled_off(); |
306 | return; | 306 | return; |
@@ -314,6 +314,7 @@ void oled_task_user(void) { | |||
314 | } else { | 314 | } else { |
315 | render_status_secondary(); | 315 | render_status_secondary(); |
316 | } | 316 | } |
317 | return false; | ||
317 | } | 318 | } |
318 | 319 | ||
319 | #endif | 320 | #endif |
diff --git a/keyboards/crkbd/keymaps/sulrich/keymap.c b/keyboards/crkbd/keymaps/sulrich/keymap.c index f1cd60c52..84668b53c 100644 --- a/keyboards/crkbd/keymaps/sulrich/keymap.c +++ b/keyboards/crkbd/keymaps/sulrich/keymap.c | |||
@@ -137,13 +137,14 @@ void oled_render_logo(void) { | |||
137 | oled_write_P(crkbd_logo, false); | 137 | oled_write_P(crkbd_logo, false); |
138 | } | 138 | } |
139 | 139 | ||
140 | void oled_task_user(void) { | 140 | bool oled_task_user(void) { |
141 | if (is_keyboard_master()) { | 141 | if (is_keyboard_master()) { |
142 | oled_render_layer_state(); | 142 | oled_render_layer_state(); |
143 | oled_render_keylog(); | 143 | oled_render_keylog(); |
144 | } else { | 144 | } else { |
145 | oled_render_logo(); | 145 | oled_render_logo(); |
146 | } | 146 | } |
147 | return false; | ||
147 | } | 148 | } |
148 | 149 | ||
149 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 150 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
@@ -153,4 +154,3 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
153 | return true; | 154 | return true; |
154 | } | 155 | } |
155 | #endif // OLED_ENABLE | 156 | #endif // OLED_ENABLE |
156 | |||
diff --git a/keyboards/crkbd/keymaps/vayashiko/keymap.c b/keyboards/crkbd/keymaps/vayashiko/keymap.c index a1a8f7e9f..ecb629f30 100644 --- a/keyboards/crkbd/keymaps/vayashiko/keymap.c +++ b/keyboards/crkbd/keymaps/vayashiko/keymap.c | |||
@@ -164,13 +164,14 @@ void oled_render_logo(void) { | |||
164 | oled_write_P(crkbd_logo, false); | 164 | oled_write_P(crkbd_logo, false); |
165 | } | 165 | } |
166 | 166 | ||
167 | void oled_task_user(void) { | 167 | bool oled_task_user(void) { |
168 | if (is_master) { | 168 | if (is_master) { |
169 | oled_render_layer_state(); | 169 | oled_render_layer_state(); |
170 | oled_render_keylog(); | 170 | oled_render_keylog(); |
171 | } else { | 171 | } else { |
172 | oled_render_logo(); | 172 | oled_render_logo(); |
173 | } | 173 | } |
174 | return false; | ||
174 | } | 175 | } |
175 | 176 | ||
176 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 177 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
diff --git a/keyboards/crkbd/keymaps/via/keymap.c b/keyboards/crkbd/keymaps/via/keymap.c index cbaeb93f6..12c86f6bb 100644 --- a/keyboards/crkbd/keymaps/via/keymap.c +++ b/keyboards/crkbd/keymaps/via/keymap.c | |||
@@ -158,13 +158,14 @@ void oled_render_logo(void) { | |||
158 | oled_write_P(crkbd_logo, false); | 158 | oled_write_P(crkbd_logo, false); |
159 | } | 159 | } |
160 | 160 | ||
161 | void oled_task_user(void) { | 161 | bool oled_task_user(void) { |
162 | if (is_keyboard_master()) { | 162 | if (is_keyboard_master()) { |
163 | oled_render_layer_state(); | 163 | oled_render_layer_state(); |
164 | oled_render_keylog(); | 164 | oled_render_keylog(); |
165 | } else { | 165 | } else { |
166 | oled_render_logo(); | 166 | oled_render_logo(); |
167 | } | 167 | } |
168 | return false; | ||
168 | } | 169 | } |
169 | 170 | ||
170 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 171 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
diff --git a/keyboards/crkbd/keymaps/xyverz/keymap.c b/keyboards/crkbd/keymaps/xyverz/keymap.c index d99d9d6ba..0b7fc0a0a 100644 --- a/keyboards/crkbd/keymaps/xyverz/keymap.c +++ b/keyboards/crkbd/keymaps/xyverz/keymap.c | |||
@@ -187,13 +187,14 @@ void oled_render_logo(void) { | |||
187 | oled_write_P(crkbd_logo, false); | 187 | oled_write_P(crkbd_logo, false); |
188 | } | 188 | } |
189 | 189 | ||
190 | void oled_task_user(void) { | 190 | bool oled_task_user(void) { |
191 | if (is_keyboard_master()) { | 191 | if (is_keyboard_master()) { |
192 | oled_render_layer_state(); | 192 | oled_render_layer_state(); |
193 | oled_render_keylog(); | 193 | oled_render_keylog(); |
194 | } else { | 194 | } else { |
195 | oled_render_logo(); | 195 | oled_render_logo(); |
196 | } | 196 | } |
197 | return false; | ||
197 | } | 198 | } |
198 | 199 | ||
199 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 200 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
diff --git a/keyboards/dekunukem/duckypad/keymaps/default/keymap.c b/keyboards/dekunukem/duckypad/keymaps/default/keymap.c index a87caa2cd..3b74640fe 100644 --- a/keyboards/dekunukem/duckypad/keymaps/default/keymap.c +++ b/keyboards/dekunukem/duckypad/keymaps/default/keymap.c | |||
@@ -125,7 +125,7 @@ char* make_rgb_text(void){ | |||
125 | return s; | 125 | return s; |
126 | }; | 126 | }; |
127 | 127 | ||
128 | void oled_task_user(void) { | 128 | bool oled_task_user(void) { |
129 | render_logo(); | 129 | render_logo(); |
130 | oled_set_cursor(0,3); | 130 | oled_set_cursor(0,3); |
131 | if (rgbToggled) { | 131 | if (rgbToggled) { |
@@ -137,6 +137,7 @@ void oled_task_user(void) { | |||
137 | oled_write_ln_P(s, false); | 137 | oled_write_ln_P(s, false); |
138 | free(s); | 138 | free(s); |
139 | } | 139 | } |
140 | return false; | ||
140 | } | 141 | } |
141 | 142 | ||
142 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 143 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
diff --git a/keyboards/dekunukem/duckypad/keymaps/m4cs/keymap.c b/keyboards/dekunukem/duckypad/keymaps/m4cs/keymap.c index 80b188a48..cd8a31473 100644 --- a/keyboards/dekunukem/duckypad/keymaps/m4cs/keymap.c +++ b/keyboards/dekunukem/duckypad/keymaps/m4cs/keymap.c | |||
@@ -203,7 +203,7 @@ char* make_sys_info_text(void) { | |||
203 | }; | 203 | }; |
204 | 204 | ||
205 | 205 | ||
206 | void oled_task_user(void) { | 206 | bool oled_task_user(void) { |
207 | if (!sysToggled) { | 207 | if (!sysToggled) { |
208 | render_logo(); | 208 | render_logo(); |
209 | oled_set_cursor(0,3); | 209 | oled_set_cursor(0,3); |
@@ -221,6 +221,7 @@ void oled_task_user(void) { | |||
221 | free(s); | 221 | free(s); |
222 | } | 222 | } |
223 | } | 223 | } |
224 | return false; | ||
224 | }; | 225 | }; |
225 | 226 | ||
226 | int concat(int a, int b) { | 227 | int concat(int a, int b) { |
diff --git a/keyboards/dekunukem/duckypad/keymaps/via/keymap.c b/keyboards/dekunukem/duckypad/keymaps/via/keymap.c index 5d11b6d6c..01baaeb59 100644 --- a/keyboards/dekunukem/duckypad/keymaps/via/keymap.c +++ b/keyboards/dekunukem/duckypad/keymaps/via/keymap.c | |||
@@ -67,7 +67,7 @@ static void render_logo(void) { | |||
67 | oled_write_raw_P(ducky_logo, LOGO_SIZE); | 67 | oled_write_raw_P(ducky_logo, LOGO_SIZE); |
68 | } | 68 | } |
69 | 69 | ||
70 | void oled_task_user(void) { | 70 | bool oled_task_user(void) { |
71 | render_logo(); | 71 | render_logo(); |
72 | return false; | ||
72 | } | 73 | } |
73 | |||
diff --git a/keyboards/dmqdesign/spin/keymaps/gorbachev/keymap.c b/keyboards/dmqdesign/spin/keymaps/gorbachev/keymap.c index 181de5621..b41359c5b 100644 --- a/keyboards/dmqdesign/spin/keymaps/gorbachev/keymap.c +++ b/keyboards/dmqdesign/spin/keymaps/gorbachev/keymap.c | |||
@@ -220,7 +220,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
220 | #endif | 220 | #endif |
221 | } | 221 | } |
222 | 222 | ||
223 | void oled_task_user(void) { | 223 | bool oled_task_user(void) { |
224 | // Host Keyboard Layer Status | 224 | // Host Keyboard Layer Status |
225 | oled_write_P(PSTR("Layer: "), false); | 225 | oled_write_P(PSTR("Layer: "), false); |
226 | 226 | ||
@@ -244,5 +244,6 @@ void oled_task_user(void) { | |||
244 | 244 | ||
245 | oled_write_P(PSTR("Mode: "), false); | 245 | oled_write_P(PSTR("Mode: "), false); |
246 | oled_write_ln(rgb_mode_name, false); | 246 | oled_write_ln(rgb_mode_name, false); |
247 | return false; | ||
247 | } | 248 | } |
248 | #endif | 249 | #endif |
diff --git a/keyboards/doodboard/duckboard/keymaps/default/keymap.c b/keyboards/doodboard/duckboard/keymaps/default/keymap.c index e25280ff6..b4e6207ae 100644 --- a/keyboards/doodboard/duckboard/keymaps/default/keymap.c +++ b/keyboards/doodboard/duckboard/keymaps/default/keymap.c | |||
@@ -89,7 +89,7 @@ static void render_anim(void) { | |||
89 | } | 89 | } |
90 | } | 90 | } |
91 | 91 | ||
92 | void oled_task_user(void) { | 92 | bool oled_task_user(void) { |
93 | render_anim(); | 93 | render_anim(); |
94 | oled_set_cursor(0,6); | 94 | oled_set_cursor(0,6); |
95 | oled_write_P(PSTR("DUCK\nBOARD\n"), false); | 95 | oled_write_P(PSTR("DUCK\nBOARD\n"), false); |
@@ -109,6 +109,7 @@ void oled_task_user(void) { | |||
109 | oled_write_P(PSTR("RGB\n"), false); | 109 | oled_write_P(PSTR("RGB\n"), false); |
110 | break; | 110 | break; |
111 | } | 111 | } |
112 | return false; | ||
112 | } | 113 | } |
113 | #endif | 114 | #endif |
114 | 115 | ||
diff --git a/keyboards/doodboard/duckboard_r2/keymaps/default/keymap.c b/keyboards/doodboard/duckboard_r2/keymaps/default/keymap.c index ea603cdb2..af6e469ab 100644 --- a/keyboards/doodboard/duckboard_r2/keymaps/default/keymap.c +++ b/keyboards/doodboard/duckboard_r2/keymaps/default/keymap.c | |||
@@ -89,7 +89,7 @@ static void render_anim(void) { | |||
89 | } | 89 | } |
90 | } | 90 | } |
91 | 91 | ||
92 | void oled_task_user(void) { | 92 | bool oled_task_user(void) { |
93 | render_anim(); | 93 | render_anim(); |
94 | oled_set_cursor(0,6); | 94 | oled_set_cursor(0,6); |
95 | oled_write_P(PSTR("DUCK\nBOARD\n"), false); | 95 | oled_write_P(PSTR("DUCK\nBOARD\n"), false); |
@@ -109,6 +109,7 @@ void oled_task_user(void) { | |||
109 | oled_write_P(PSTR("RGB\n"), false); | 109 | oled_write_P(PSTR("RGB\n"), false); |
110 | break; | 110 | break; |
111 | } | 111 | } |
112 | return false; | ||
112 | } | 113 | } |
113 | #endif | 114 | #endif |
114 | 115 | ||
diff --git a/keyboards/doodboard/duckboard_r2/keymaps/via/keymap.c b/keyboards/doodboard/duckboard_r2/keymaps/via/keymap.c index 9afc12185..7911d9e3c 100644 --- a/keyboards/doodboard/duckboard_r2/keymaps/via/keymap.c +++ b/keyboards/doodboard/duckboard_r2/keymaps/via/keymap.c | |||
@@ -96,7 +96,7 @@ static void render_anim(void) { | |||
96 | } | 96 | } |
97 | } | 97 | } |
98 | 98 | ||
99 | void oled_task_user(void) { | 99 | bool oled_task_user(void) { |
100 | render_anim(); | 100 | render_anim(); |
101 | oled_set_cursor(0,6); | 101 | oled_set_cursor(0,6); |
102 | oled_write_P(PSTR("DUCK\nBOARD\n"), false); | 102 | oled_write_P(PSTR("DUCK\nBOARD\n"), false); |
@@ -119,6 +119,7 @@ void oled_task_user(void) { | |||
119 | oled_write_P(PSTR("FN2\n"), false); | 119 | oled_write_P(PSTR("FN2\n"), false); |
120 | break; | 120 | break; |
121 | } | 121 | } |
122 | return false; | ||
122 | } | 123 | } |
123 | #endif | 124 | #endif |
124 | 125 | ||
diff --git a/keyboards/draculad/keymaps/default/keymap.c b/keyboards/draculad/keymaps/default/keymap.c index 657ef2048..a352359d1 100644 --- a/keyboards/draculad/keymaps/default/keymap.c +++ b/keyboards/draculad/keymaps/default/keymap.c | |||
@@ -186,12 +186,13 @@ static void render_status(void) { | |||
186 | } | 186 | } |
187 | } | 187 | } |
188 | 188 | ||
189 | void oled_task_user(void) { | 189 | bool oled_task_user(void) { |
190 | if (is_keyboard_master()) { | 190 | if (is_keyboard_master()) { |
191 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 191 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
192 | } else { | 192 | } else { |
193 | render_logo(); | 193 | render_logo(); |
194 | } | 194 | } |
195 | return false; | ||
195 | } | 196 | } |
196 | 197 | ||
197 | #endif | 198 | #endif |
diff --git a/keyboards/draculad/keymaps/pimoroni/keymap.c b/keyboards/draculad/keymaps/pimoroni/keymap.c index c7b6cd35d..b70184dbc 100644 --- a/keyboards/draculad/keymaps/pimoroni/keymap.c +++ b/keyboards/draculad/keymaps/pimoroni/keymap.c | |||
@@ -200,12 +200,13 @@ static void render_status(void) { | |||
200 | } | 200 | } |
201 | } | 201 | } |
202 | 202 | ||
203 | void oled_task_user(void) { | 203 | bool oled_task_user(void) { |
204 | if (is_keyboard_master()) { | 204 | if (is_keyboard_master()) { |
205 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 205 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
206 | } else { | 206 | } else { |
207 | render_logo(); | 207 | render_logo(); |
208 | } | 208 | } |
209 | return false; | ||
209 | } | 210 | } |
210 | 211 | ||
211 | #endif | 212 | #endif |
diff --git a/keyboards/dumbo/keymaps/default/keymap.c b/keyboards/dumbo/keymaps/default/keymap.c index f3ee89521..7fc3ffc2c 100644 --- a/keyboards/dumbo/keymaps/default/keymap.c +++ b/keyboards/dumbo/keymaps/default/keymap.c | |||
@@ -179,12 +179,13 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
179 | return rotation; | 179 | return rotation; |
180 | } | 180 | } |
181 | 181 | ||
182 | void oled_task_user(void) { | 182 | bool oled_task_user(void) { |
183 | if (is_keyboard_master()) { | 183 | if (is_keyboard_master()) { |
184 | print_status_narrow(); | 184 | print_status_narrow(); |
185 | } else { | 185 | } else { |
186 | render_logo(); | 186 | render_logo(); |
187 | } | 187 | } |
188 | return false; | ||
188 | } | 189 | } |
189 | #endif | 190 | #endif |
190 | 191 | ||
diff --git a/keyboards/dumbo/keymaps/trip-trap/keymap.c b/keyboards/dumbo/keymaps/trip-trap/keymap.c index fc1092ca6..73042f5f5 100644 --- a/keyboards/dumbo/keymaps/trip-trap/keymap.c +++ b/keyboards/dumbo/keymaps/trip-trap/keymap.c | |||
@@ -375,7 +375,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
375 | return rotation; | 375 | return rotation; |
376 | } | 376 | } |
377 | 377 | ||
378 | void oled_task_user(void) { | 378 | bool oled_task_user(void) { |
379 | if (is_keyboard_master()) { | 379 | if (is_keyboard_master()) { |
380 | print_status_narrow(); | 380 | print_status_narrow(); |
381 | sprintf(wpm_str, "%03d", get_current_wpm()); | 381 | sprintf(wpm_str, "%03d", get_current_wpm()); |
@@ -383,6 +383,7 @@ void oled_task_user(void) { | |||
383 | } else { | 383 | } else { |
384 | render_anim(); | 384 | render_anim(); |
385 | } | 385 | } |
386 | return false; | ||
386 | } | 387 | } |
387 | #endif | 388 | #endif |
388 | 389 | ||
diff --git a/keyboards/ein_60/ein_60.c b/keyboards/ein_60/ein_60.c index e9431edef..d15ad0cd5 100644 --- a/keyboards/ein_60/ein_60.c +++ b/keyboards/ein_60/ein_60.c | |||
@@ -56,7 +56,8 @@ const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT( | |||
56 | #endif | 56 | #endif |
57 | 57 | ||
58 | #ifdef OLED_ENABLE | 58 | #ifdef OLED_ENABLE |
59 | __attribute__((weak)) void oled_task_user(void) { | 59 | bool oled_task_kb(void) { |
60 | if (!oled_task_user()) { return false; } | ||
60 | // Host Keyboard Layer Status | 61 | // Host Keyboard Layer Status |
61 | oled_write_P(PSTR("Layer: "), false); | 62 | oled_write_P(PSTR("Layer: "), false); |
62 | switch (get_highest_layer(layer_state)) { | 63 | switch (get_highest_layer(layer_state)) { |
@@ -95,7 +96,9 @@ __attribute__((weak)) void oled_task_user(void) { | |||
95 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,255,255, 4,253,197,197,197,197,197,197,197,197,197,197,199,192,192, 0,255,255, 0,255, 0,255,255, 0,254, 13, 27, 55,111,222,188,120,255, 0,255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,255,255, 0,255,197,197,197,197,197,197,197,197,197,197,253,253,255,131,254, 0, 0,255,255, 0,255,184,220,238,247,219,205,198,195,193,192,255,255,255,128,255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | 96 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,255,255, 4,253,197,197,197,197,197,197,197,197,197,197,199,192,192, 0,255,255, 0,255, 0,255,255, 0,254, 13, 27, 55,111,222,188,120,255, 0,255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,255,255, 0,255,197,197,197,197,197,197,197,197,197,197,253,253,255,131,254, 0, 0,255,255, 0,255,184,220,238,247,219,205,198,195,193,192,255,255,255,128,255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
96 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 0, 3, 3, 2, 3, 0, 3, 3, 2, 3, 0, 0, 0, 0, 0, 1, 3, 2, 2, 3, 0, 8, 28, 20, 20, 20, 20, 20, 28, 8, 0, 1, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 0, 0, 0, 1, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | 97 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 0, 3, 3, 2, 3, 0, 3, 3, 2, 3, 0, 0, 0, 0, 0, 1, 3, 2, 2, 3, 0, 8, 28, 20, 20, 20, 20, 20, 28, 8, 0, 1, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 0, 0, 0, 1, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
97 | }; | 98 | }; |
99 | |||
98 | oled_write_raw_P(ein60_logo, sizeof(ein60_logo)); | 100 | oled_write_raw_P(ein60_logo, sizeof(ein60_logo)); |
101 | return false; | ||
99 | } | 102 | } |
100 | #endif | 103 | #endif |
101 | 104 | ||
diff --git a/keyboards/ein_60/keymaps/default/keymap.c b/keyboards/ein_60/keymaps/default/keymap.c index 3984dabcb..24a705106 100644 --- a/keyboards/ein_60/keymaps/default/keymap.c +++ b/keyboards/ein_60/keymaps/default/keymap.c | |||
@@ -167,11 +167,12 @@ static void render_status(void) { | |||
167 | oled_set_cursor(1,2); | 167 | oled_set_cursor(1,2); |
168 | } | 168 | } |
169 | 169 | ||
170 | void oled_task_user(void) { | 170 | bool oled_task_user(void) { |
171 | 171 | ||
172 | render_status(); | 172 | render_status(); |
173 | oled_write_ln_P(PSTR(""), false); | 173 | oled_write_ln_P(PSTR(""), false); |
174 | render_ein60_logo(); | 174 | render_ein60_logo(); |
175 | return false; | ||
175 | } | 176 | } |
176 | #endif | 177 | #endif |
177 | 178 | ||
diff --git a/keyboards/ein_60/keymaps/klackygears/keymap.c b/keyboards/ein_60/keymaps/klackygears/keymap.c index ea1d77dea..be3c30b97 100644 --- a/keyboards/ein_60/keymaps/klackygears/keymap.c +++ b/keyboards/ein_60/keymaps/klackygears/keymap.c | |||
@@ -104,7 +104,7 @@ static void render_ein60_logo(void) { | |||
104 | 104 | ||
105 | 105 | ||
106 | static void render_status(void) { | 106 | static void render_status(void) { |
107 | //void oled_task_user(void) { | 107 | //bool oled_task_user(void) { |
108 | 108 | ||
109 | // Host Keyboard Layer Status | 109 | // Host Keyboard Layer Status |
110 | oled_write_P(PSTR("Layer: "), false); | 110 | oled_write_P(PSTR("Layer: "), false); |
@@ -145,12 +145,13 @@ static void render_status(void) { | |||
145 | 145 | ||
146 | } | 146 | } |
147 | 147 | ||
148 | void oled_task_user(void) { | 148 | bool oled_task_user(void) { |
149 | 149 | ||
150 | render_status(); | 150 | render_status(); |
151 | oled_write_ln_P(PSTR(""), false); | 151 | oled_write_ln_P(PSTR(""), false); |
152 | render_ein60_logo(); | 152 | render_ein60_logo(); |
153 | 153 | ||
154 | return false; | ||
154 | } | 155 | } |
155 | 156 | ||
156 | #endif | 157 | #endif |
@@ -172,5 +173,3 @@ bool encoder_update_user(uint8_t index, bool clockwise) { | |||
172 | } | 173 | } |
173 | return true; | 174 | return true; |
174 | } | 175 | } |
175 | |||
176 | |||
diff --git a/keyboards/ein_60/keymaps/ledtest/keymap.c b/keyboards/ein_60/keymaps/ledtest/keymap.c index 6f903124a..5fb5217c9 100644 --- a/keyboards/ein_60/keymaps/ledtest/keymap.c +++ b/keyboards/ein_60/keymaps/ledtest/keymap.c | |||
@@ -166,11 +166,13 @@ static void render_status(void) { | |||
166 | oled_set_cursor(1,2); | 166 | oled_set_cursor(1,2); |
167 | } | 167 | } |
168 | 168 | ||
169 | void oled_task_user(void) { | 169 | bool oled_task_user(void) { |
170 | 170 | ||
171 | render_status(); | 171 | render_status(); |
172 | oled_write_ln_P(PSTR(""), false); | 172 | oled_write_ln_P(PSTR(""), false); |
173 | render_ein60_logo(); | 173 | render_ein60_logo(); |
174 | |||
175 | return false; | ||
174 | } | 176 | } |
175 | #endif | 177 | #endif |
176 | 178 | ||
diff --git a/keyboards/gergo/keymaps/oled/keymap.c b/keyboards/gergo/keymaps/oled/keymap.c index 7e19a799e..ab374b933 100644 --- a/keyboards/gergo/keymaps/oled/keymap.c +++ b/keyboards/gergo/keymaps/oled/keymap.c | |||
@@ -130,13 +130,14 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
130 | return OLED_ROTATION_180; | 130 | return OLED_ROTATION_180; |
131 | } | 131 | } |
132 | 132 | ||
133 | void oled_task_user(void) { | 133 | bool oled_task_user(void) { |
134 | static const char PROGMEM font_logo[] = { | 134 | static const char PROGMEM font_logo[] = { |
135 | 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94, | 135 | 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94, |
136 | 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4, | 136 | 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4, |
137 | 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0}; | 137 | 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0}; |
138 | oled_write_P(font_logo, false); | 138 | oled_write_P(font_logo, false); |
139 | 139 | ||
140 | return false; | ||
140 | } | 141 | } |
141 | //for (int i = 0; i < fontLen; i++) { | 142 | //for (int i = 0; i < fontLen; i++) { |
142 | //oled_write_char(pgm_read_byte(lain+i), false); | 143 | //oled_write_char(pgm_read_byte(lain+i), false); |
diff --git a/keyboards/getta25/keymaps/oled/keymap.c b/keyboards/getta25/keymaps/oled/keymap.c index 4fbaf3ec2..7d8151b86 100644 --- a/keyboards/getta25/keymaps/oled/keymap.c +++ b/keyboards/getta25/keymaps/oled/keymap.c | |||
@@ -182,7 +182,7 @@ void render_status(void) { | |||
182 | render_keylock_status(host_keyboard_led_state()); | 182 | render_keylock_status(host_keyboard_led_state()); |
183 | } | 183 | } |
184 | 184 | ||
185 | void oled_task_user(void) { | 185 | bool oled_task_user(void) { |
186 | static const char PROGMEM font_logo[] = { | 186 | static const char PROGMEM font_logo[] = { |
187 | 0x80,0x81,0x82,0x83,0x84, | 187 | 0x80,0x81,0x82,0x83,0x84, |
188 | 0xa0,0xa1,0xa2,0xa3,0xa4, | 188 | 0xa0,0xa1,0xa2,0xa3,0xa4, |
@@ -199,6 +199,7 @@ void oled_task_user(void) { | |||
199 | oled_write_P(font_logo, false); | 199 | oled_write_P(font_logo, false); |
200 | 200 | ||
201 | render_status(); // Renders the current keyboard state (layer, lock) | 201 | render_status(); // Renders the current keyboard state (layer, lock) |
202 | return false; | ||
202 | } | 203 | } |
203 | 204 | ||
204 | #endif | 205 | #endif |
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 |
diff --git a/keyboards/hadron/ver3/ver3.c b/keyboards/hadron/ver3/ver3.c index 40bc57c20..4c5a2e0c9 100644 --- a/keyboards/hadron/ver3/ver3.c +++ b/keyboards/hadron/ver3/ver3.c | |||
@@ -34,13 +34,12 @@ led_config_t g_led_config = { { | |||
34 | #endif | 34 | #endif |
35 | 35 | ||
36 | #ifdef OLED_ENABLE | 36 | #ifdef OLED_ENABLE |
37 | __attribute__ ((weak)) | 37 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { return OLED_ROTATION_180; } |
38 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | ||
39 | return OLED_ROTATION_180; | ||
40 | } | ||
41 | 38 | ||
42 | __attribute__ ((weak)) | 39 | bool oled_task_kb(void) { |
43 | void oled_task_user(void) { | 40 | if (!oled_task_user()) { |
41 | return false; | ||
42 | } | ||
44 | oled_write_P(PSTR("LAYER"), false); | 43 | oled_write_P(PSTR("LAYER"), false); |
45 | oled_advance_char(); | 44 | oled_advance_char(); |
46 | oled_write_char(get_highest_layer(layer_state) + 0x30, true); | 45 | oled_write_char(get_highest_layer(layer_state) + 0x30, true); |
@@ -94,5 +93,6 @@ void oled_task_user(void) { | |||
94 | for (uint8_t y = 0; y < 8; y++) { | 93 | for (uint8_t y = 0; y < 8; y++) { |
95 | oled_write_pixel(35, 0 + y, true); | 94 | oled_write_pixel(35, 0 + y, true); |
96 | } | 95 | } |
96 | return false; | ||
97 | } | 97 | } |
98 | #endif | 98 | #endif |
diff --git a/keyboards/halfcliff/halfcliff.c b/keyboards/halfcliff/halfcliff.c index 4e2910b84..9e3f64d28 100644 --- a/keyboards/halfcliff/halfcliff.c +++ b/keyboards/halfcliff/halfcliff.c | |||
@@ -27,14 +27,18 @@ enum layer_names { | |||
27 | /* _FN */ | 27 | /* _FN */ |
28 | }; | 28 | }; |
29 | 29 | ||
30 | __attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 30 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
31 | if (!is_keyboard_master()) { | 31 | if (!is_keyboard_master()) { |
32 | return OLED_ROTATION_180; // flips the display 180 degrees if offhand | 32 | return OLED_ROTATION_180; // flips the display 180 degrees if offhand |
33 | } | 33 | } |
34 | return rotation; | 34 | return rotation; |
35 | } | 35 | } |
36 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { return OLED_ROTATION_180; } | ||
36 | 37 | ||
37 | __attribute__((weak)) void oled_task_user(void) { | 38 | bool oled_task_kb(void) { |
39 | if (!oled_task_user()) { | ||
40 | return false; | ||
41 | } | ||
38 | if (!is_keyboard_master()) { | 42 | if (!is_keyboard_master()) { |
39 | static const char PROGMEM qmk_logo[] = { | 43 | static const char PROGMEM qmk_logo[] = { |
40 | 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, | 44 | 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, |
@@ -68,6 +72,7 @@ __attribute__((weak)) void oled_task_user(void) { | |||
68 | oled_write_P(led_state.caps_lock ? PSTR("CAPLCK ") : PSTR(" "), false); | 72 | oled_write_P(led_state.caps_lock ? PSTR("CAPLCK ") : PSTR(" "), false); |
69 | oled_write_P(led_state.scroll_lock ? PSTR("SCRLCK\n") : PSTR(" \n"), false); | 73 | oled_write_P(led_state.scroll_lock ? PSTR("SCRLCK\n") : PSTR(" \n"), false); |
70 | } | 74 | } |
75 | return false; | ||
71 | } | 76 | } |
72 | #endif | 77 | #endif |
73 | 78 | ||
diff --git a/keyboards/handwired/amigopunk/keymaps/default/keymap.c b/keyboards/handwired/amigopunk/keymaps/default/keymap.c index b7df62979..3a64958fa 100644 --- a/keyboards/handwired/amigopunk/keymaps/default/keymap.c +++ b/keyboards/handwired/amigopunk/keymaps/default/keymap.c | |||
@@ -85,8 +85,9 @@ static void render_amigopunk_logo(void) { | |||
85 | }; | 85 | }; |
86 | oled_write_raw_P(amigopunk_logo, sizeof(amigopunk_logo)); | 86 | oled_write_raw_P(amigopunk_logo, sizeof(amigopunk_logo)); |
87 | } | 87 | } |
88 | void oled_task_user(void) { | 88 | bool oled_task_user(void) { |
89 | render_amigopunk_logo(); | 89 | render_amigopunk_logo(); |
90 | /* oled_write_P(PSTR("Amigo Punk\n"), false); */ | 90 | /* oled_write_P(PSTR("Amigo Punk\n"), false); */ |
91 | return false; | ||
91 | } | 92 | } |
92 | #endif | 93 | #endif |
diff --git a/keyboards/handwired/d48/keymaps/anderson/keymap.c b/keyboards/handwired/d48/keymaps/anderson/keymap.c index 069978071..11bc62e53 100644 --- a/keyboards/handwired/d48/keymaps/anderson/keymap.c +++ b/keyboards/handwired/d48/keymaps/anderson/keymap.c | |||
@@ -251,7 +251,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
251 | return OLED_ROTATION_0; | 251 | return OLED_ROTATION_0; |
252 | } | 252 | } |
253 | 253 | ||
254 | void oled_task_user(void) { | 254 | bool oled_task_user(void) { |
255 | /* Host Keyboard Layer Status */ | 255 | /* Host Keyboard Layer Status */ |
256 | uint8_t current_layer = get_highest_layer(layer_state); | 256 | uint8_t current_layer = get_highest_layer(layer_state); |
257 | 257 | ||
@@ -337,5 +337,6 @@ void oled_task_user(void) { | |||
337 | } | 337 | } |
338 | } | 338 | } |
339 | 339 | ||
340 | return false; | ||
340 | } | 341 | } |
341 | #endif | 342 | #endif |
diff --git a/keyboards/handwired/d48/keymaps/default/keymap.c b/keyboards/handwired/d48/keymaps/default/keymap.c index 66b8dd714..4c3925c7e 100644 --- a/keyboards/handwired/d48/keymaps/default/keymap.c +++ b/keyboards/handwired/d48/keymaps/default/keymap.c | |||
@@ -196,7 +196,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
196 | return OLED_ROTATION_0; | 196 | return OLED_ROTATION_0; |
197 | } | 197 | } |
198 | 198 | ||
199 | void oled_task_user(void) { | 199 | bool oled_task_user(void) { |
200 | /* Host Keyboard Layer Status */ | 200 | /* Host Keyboard Layer Status */ |
201 | uint8_t current_layer = get_highest_layer(layer_state); | 201 | uint8_t current_layer = get_highest_layer(layer_state); |
202 | 202 | ||
@@ -282,5 +282,6 @@ void oled_task_user(void) { | |||
282 | } | 282 | } |
283 | } | 283 | } |
284 | 284 | ||
285 | return false; | ||
285 | } | 286 | } |
286 | #endif | 287 | #endif |
diff --git a/keyboards/handwired/dactyl_manuform/5x6_5/keymaps/333fred/keymap.c b/keyboards/handwired/dactyl_manuform/5x6_5/keymaps/333fred/keymap.c index fd8c16420..1e164081f 100644 --- a/keyboards/handwired/dactyl_manuform/5x6_5/keymaps/333fred/keymap.c +++ b/keyboards/handwired/dactyl_manuform/5x6_5/keymaps/333fred/keymap.c | |||
@@ -115,7 +115,7 @@ void write_quote(const char* data, const uint8_t num_lines) { | |||
115 | } | 115 | } |
116 | } | 116 | } |
117 | 117 | ||
118 | void oled_task_user(void) { | 118 | bool oled_task_user(void) { |
119 | if (is_keyboard_master()) { | 119 | if (is_keyboard_master()) { |
120 | render_logo(); | 120 | render_logo(); |
121 | oled_advance_page(/* clearPageRemainder */ true); | 121 | oled_advance_page(/* clearPageRemainder */ true); |
@@ -559,6 +559,7 @@ void oled_task_user(void) { | |||
559 | break; | 559 | break; |
560 | } | 560 | } |
561 | } | 561 | } |
562 | return false; | ||
562 | } | 563 | } |
563 | 564 | ||
564 | bool encoder_update_user(uint8_t index, bool clockwise) { | 565 | bool encoder_update_user(uint8_t index, bool clockwise) { |
diff --git a/keyboards/handwired/marauder/keymaps/orvia/keymap.c b/keyboards/handwired/marauder/keymaps/orvia/keymap.c index 87a0a93cc..987e74812 100644 --- a/keyboards/handwired/marauder/keymaps/orvia/keymap.c +++ b/keyboards/handwired/marauder/keymaps/orvia/keymap.c | |||
@@ -156,7 +156,7 @@ static void render_anim(void) { | |||
156 | } | 156 | } |
157 | 157 | ||
158 | // Used to draw on to the oled screen | 158 | // Used to draw on to the oled screen |
159 | void oled_task_user(void) { | 159 | bool oled_task_user(void) { |
160 | render_anim(); // renders pixelart | 160 | render_anim(); // renders pixelart |
161 | 161 | ||
162 | oled_set_cursor(0, 0); // sets cursor to (row, column) using charactar spacing (4 rows, 21 full columns on a 128x32 screen, anything more will overflow back to the top) | 162 | oled_set_cursor(0, 0); // sets cursor to (row, column) using charactar spacing (4 rows, 21 full columns on a 128x32 screen, anything more will overflow back to the top) |
@@ -194,5 +194,6 @@ void oled_task_user(void) { | |||
194 | } | 194 | } |
195 | oled_set_cursor(17, 3); | 195 | oled_set_cursor(17, 3); |
196 | oled_write_P(PSTR("NKRO"), keymap_config.nkro); | 196 | oled_write_P(PSTR("NKRO"), keymap_config.nkro); |
197 | return false; | ||
197 | } | 198 | } |
198 | #endif | 199 | #endif |
diff --git a/keyboards/handwired/myskeeb/oled.c b/keyboards/handwired/myskeeb/oled.c index ee6aa8655..081ca8395 100644 --- a/keyboards/handwired/myskeeb/oled.c +++ b/keyboards/handwired/myskeeb/oled.c | |||
@@ -1,108 +1,108 @@ | |||
1 | // [OLED Configuration] ---------------------------------------------// | 1 | // [OLED Configuration] ---------------------------------------------// |
2 | 2 | ||
3 | // Draw | 3 | // Draw |
4 | static const char PROGMEM skeeb_logo[] = { | 4 | static const char PROGMEM skeeb_logo[] = { |
5 | 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94, | 5 | 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94, |
6 | 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4, | 6 | 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4, |
7 | 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4, | 7 | 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4, |
8 | 0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0}; | 8 | 0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0}; |
9 | 9 | ||
10 | static const char PROGMEM oled_header[] = { | 10 | static const char PROGMEM oled_header[] = { |
11 | 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94, | 11 | 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94, |
12 | 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4, | 12 | 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4, |
13 | 0xc0,0}; | 13 | 0xc0,0}; |
14 | 14 | ||
15 | static const char PROGMEM oled_layer_keylog_separator[] = { | 15 | static const char PROGMEM oled_layer_keylog_separator[] = { |
16 | 0xc8,0xff,0}; | 16 | 0xc8,0xff,0}; |
17 | 17 | ||
18 | static const char PROGMEM oled_layer_line_end[] = { | 18 | static const char PROGMEM oled_layer_line_end[] = { |
19 | 0xd4,0}; | 19 | 0xd4,0}; |
20 | 20 | ||
21 | static const char PROGMEM oled_layer_keylog_bottom[] = { | 21 | static const char PROGMEM oled_layer_keylog_bottom[] = { |
22 | 0xc1,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc3,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc2,0}; | 22 | 0xc1,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc3,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc2,0}; |
23 | 23 | ||
24 | static const char PROGMEM oled_line_start[] = { | 24 | static const char PROGMEM oled_line_start[] = { |
25 | 0xc0,0}; | 25 | 0xc0,0}; |
26 | 26 | ||
27 | static const char PROGMEM oled_mods_bottom[] = { | 27 | static const char PROGMEM oled_mods_bottom[] = { |
28 | 0xc1,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc2,0}; | 28 | 0xc1,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc7,0xc2,0}; |
29 | 29 | ||
30 | static const char PROGMEM oled_footer[] = { | 30 | static const char PROGMEM oled_footer[] = { |
31 | 0xc4,0xc5,0xc5,0xc9,0xca,0xca,0xca,0xca,0xca,0xca,0xca,0xca,0xca,0xca,0xca,0xca,0xca,0xcb,0xc5,0xc5,0xc6,0}; | 31 | 0xc4,0xc5,0xc5,0xc9,0xca,0xca,0xca,0xca,0xca,0xca,0xca,0xca,0xca,0xca,0xca,0xca,0xca,0xcb,0xc5,0xc5,0xc6,0}; |
32 | 32 | ||
33 | void render_skeeb_logo(void) { | 33 | void render_skeeb_logo(void) { |
34 | static const char PROGMEM skeeb_logo[] = { | 34 | static const char PROGMEM skeeb_logo[] = { |
35 | 0x00, 0xc0, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x03, | 35 | 0x00, 0xc0, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x03, |
36 | 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, | 36 | 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, |
37 | 0xff, 0xff, 0xff, 0x81, 0x81, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x19, 0x19, 0xff, 0xff, 0x01, | 37 | 0xff, 0xff, 0xff, 0x81, 0x81, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x19, 0x19, 0xff, 0xff, 0x01, |
38 | 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x19, 0x19, 0x99, 0x99, 0x99, | 38 | 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x19, 0x19, 0x99, 0x99, 0x99, |
39 | 0x99, 0x99, 0x99, 0x01, 0x01, 0xff, 0xff, 0x81, 0x81, 0x7f, 0x7f, 0xff, 0xff, 0x7f, 0x7f, 0x81, | 39 | 0x99, 0x99, 0x99, 0x01, 0x01, 0xff, 0xff, 0x81, 0x81, 0x7f, 0x7f, 0xff, 0xff, 0x7f, 0x7f, 0x81, |
40 | 0x81, 0xff, 0xff, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0xf9, 0xf9, 0xff, 0xff, 0xff, | 40 | 0x81, 0xff, 0xff, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0xf9, 0xf9, 0xff, 0xff, 0xff, |
41 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x3f, 0x1f, 0x0f, 0x07, | 41 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x3f, 0x1f, 0x0f, 0x07, |
42 | 0x03, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0xc0, 0x00, | 42 | 0x03, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0xc0, 0x00, |
43 | 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 43 | 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
44 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x07, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, | 44 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x07, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, |
45 | 0x0f, 0x0f, 0x0f, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x08, 0x08, 0x0f, 0x0f, 0x08, | 45 | 0x0f, 0x0f, 0x0f, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x08, 0x08, 0x0f, 0x0f, 0x08, |
46 | 0x08, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x0f, 0x0f, 0x08, 0x08, 0x0f, 0x0f, 0x0f, | 46 | 0x08, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x0f, 0x0f, 0x08, 0x08, 0x0f, 0x0f, 0x0f, |
47 | 0x0f, 0x0f, 0x0f, 0x08, 0x08, 0x0f, 0x0f, 0x0f, 0x0f, 0x0e, 0x0e, 0x09, 0x09, 0x0e, 0x0e, 0x0f, | 47 | 0x0f, 0x0f, 0x0f, 0x08, 0x08, 0x0f, 0x0f, 0x0f, 0x0f, 0x0e, 0x0e, 0x09, 0x09, 0x0e, 0x0e, 0x0f, |
48 | 0x0f, 0x0f, 0x0f, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x0f, 0x0f, 0x0f, | 48 | 0x0f, 0x0f, 0x0f, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x0f, 0x0f, 0x0f, |
49 | 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x07, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 49 | 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x07, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
50 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, | 50 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, |
51 | 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 51 | 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
52 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 52 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
53 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 53 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
54 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0x40, 0x20, 0x20, 0x10, 0x10, 0x10, | 54 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0x40, 0x20, 0x20, 0x10, 0x10, 0x10, |
55 | 0x10, 0x10, 0x20, 0x20, 0x40, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 55 | 0x10, 0x10, 0x20, 0x20, 0x40, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
56 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 56 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
57 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 57 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
58 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, | 58 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, |
59 | 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 59 | 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
60 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 60 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
61 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 61 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
62 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0xe0, 0x20, 0x20, 0xe0, 0x00, 0x00, 0x00, | 62 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0xe0, 0x20, 0x20, 0xe0, 0x00, 0x00, 0x00, |
63 | 0x00, 0x00, 0xe0, 0x20, 0x20, 0xe0, 0x00, 0x01, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 63 | 0x00, 0x00, 0xe0, 0x20, 0x20, 0xe0, 0x00, 0x01, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
64 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 64 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
65 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 65 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
66 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, | 66 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, |
67 | 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 67 | 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
68 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 68 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
69 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 69 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
70 | 0xe0, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3f, 0x00, 0x00, 0xf9, 0x01, 0x01, 0xf9, 0x00, 0x00, 0xf8, | 70 | 0xe0, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3f, 0x00, 0x00, 0xf9, 0x01, 0x01, 0xf9, 0x00, 0x00, 0xf8, |
71 | 0x00, 0x00, 0xf9, 0x01, 0x01, 0xf9, 0x00, 0x00, 0x3f, 0x20, 0x20, 0x20, 0x20, 0x20, 0xe0, 0x00, | 71 | 0x00, 0x00, 0xf9, 0x01, 0x01, 0xf9, 0x00, 0x00, 0x3f, 0x20, 0x20, 0x20, 0x20, 0x20, 0xe0, 0x00, |
72 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 72 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
73 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 73 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
74 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, | 74 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, |
75 | 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 75 | 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
76 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 76 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
77 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 77 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
78 | 0xff, 0x00, 0x00, 0xfc, 0x00, 0x00, 0xff, 0x01, 0x01, 0xf1, 0x10, 0x10, 0x1f, 0x00, 0x00, 0x3f, | 78 | 0xff, 0x00, 0x00, 0xfc, 0x00, 0x00, 0xff, 0x01, 0x01, 0xf1, 0x10, 0x10, 0x1f, 0x00, 0x00, 0x3f, |
79 | 0x00, 0x00, 0x1f, 0x10, 0x10, 0xf3, 0x02, 0x02, 0xf2, 0x12, 0x12, 0x1e, 0x00, 0x00, 0xff, 0x00, | 79 | 0x00, 0x00, 0x1f, 0x10, 0x10, 0xf3, 0x02, 0x02, 0xf2, 0x12, 0x12, 0x1e, 0x00, 0x00, 0xff, 0x00, |
80 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 80 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
81 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 81 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
82 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, | 82 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, |
83 | 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 83 | 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
84 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 84 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
85 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 85 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
86 | 0x0f, 0x00, 0x00, 0x0f, 0x08, 0x08, 0x0f, 0x00, 0x00, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x0f, | 86 | 0x0f, 0x00, 0x00, 0x0f, 0x08, 0x08, 0x0f, 0x00, 0x00, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x0f, |
87 | 0x00, 0x00, 0x0f, 0x01, 0x01, 0x09, 0x08, 0x08, 0x09, 0x09, 0x09, 0x0f, 0x00, 0x00, 0x0f, 0x00, | 87 | 0x00, 0x00, 0x0f, 0x01, 0x01, 0x09, 0x08, 0x08, 0x09, 0x09, 0x09, 0x0f, 0x00, 0x00, 0x0f, 0x00, |
88 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 88 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
89 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 89 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
90 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, | 90 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, |
91 | 0x00, 0x03, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xc0, 0xe0, | 91 | 0x00, 0x03, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xc0, 0xe0, |
92 | 0xf0, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, | 92 | 0xf0, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, |
93 | 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, | 93 | 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, |
94 | 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, | 94 | 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, |
95 | 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, | 95 | 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, |
96 | 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, | 96 | 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, |
97 | 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf0, | 97 | 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf0, |
98 | 0xe0, 0xc0, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x03, 0x00,0 | 98 | 0xe0, 0xc0, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x03, 0x00,0 |
99 | }; | 99 | }; |
100 | oled_write_raw_P(skeeb_logo, sizeof(skeeb_logo)); | 100 | oled_write_raw_P(skeeb_logo, sizeof(skeeb_logo)); |
101 | } | 101 | } |
102 | 102 | ||
103 | // Mods Status | 103 | // Mods Status |
104 | void render_mod_status(uint8_t modifiers) { | 104 | void render_mod_status(uint8_t modifiers) { |
105 | oled_write_P(PSTR(" "), false); | 105 | oled_write_P(PSTR(" "), false); |
106 | oled_write_P(PSTR("-"), false); | 106 | oled_write_P(PSTR("-"), false); |
107 | oled_write_P(PSTR("SHF"), (modifiers & MOD_MASK_SHIFT)); | 107 | oled_write_P(PSTR("SHF"), (modifiers & MOD_MASK_SHIFT)); |
108 | oled_write_P(PSTR("-"), false); | 108 | oled_write_P(PSTR("-"), false); |
@@ -112,7 +112,7 @@ void render_mod_status(uint8_t modifiers) { | |||
112 | oled_write_P(PSTR("-"), false); | 112 | oled_write_P(PSTR("-"), false); |
113 | oled_write_P(PSTR("ALT"), (modifiers & MOD_MASK_ALT)); | 113 | oled_write_P(PSTR("ALT"), (modifiers & MOD_MASK_ALT)); |
114 | oled_write_P(PSTR("-"), false); | 114 | oled_write_P(PSTR("-"), false); |
115 | oled_write_P(PSTR(" "), false); | 115 | oled_write_P(PSTR(" "), false); |
116 | } | 116 | } |
117 | 117 | ||
118 | // Layer State | 118 | // Layer State |
@@ -122,19 +122,19 @@ void render_layer_state(void){ | |||
122 | case 1: oled_write_P(PSTR(" MEDIA "), false); break; | 122 | case 1: oled_write_P(PSTR(" MEDIA "), false); break; |
123 | case 2: oled_write_P(PSTR(" MOBA "), false); break; | 123 | case 2: oled_write_P(PSTR(" MOBA "), false); break; |
124 | case 3: oled_write_P(PSTR(" FPS "), false); break; | 124 | case 3: oled_write_P(PSTR(" FPS "), false); break; |
125 | default: oled_write_P(PSTR("Undefined"), false); | 125 | default: oled_write_P(PSTR("Undefined"), false); |
126 | } | 126 | } |
127 | } | 127 | } |
128 | 128 | ||
129 | // Keylock State | 129 | // Keylock State |
130 | void render_keylock_status(uint8_t led_usb_state) { | 130 | void render_keylock_status(uint8_t led_usb_state) { |
131 | oled_write_P(PSTR(" "), false); | 131 | oled_write_P(PSTR(" "), false); |
132 | oled_write_P(led_usb_state & (1<<USB_LED_NUM_LOCK) ? PSTR("-NUML") : PSTR("-----"), false); | 132 | oled_write_P(led_usb_state & (1<<USB_LED_NUM_LOCK) ? PSTR("-NUML") : PSTR("-----"), false); |
133 | oled_write_P(PSTR(" "), false); | 133 | oled_write_P(PSTR(" "), false); |
134 | oled_write_P(led_usb_state & (1<<USB_LED_CAPS_LOCK) ? PSTR("-CAPS") : PSTR("-----"), false); | 134 | oled_write_P(led_usb_state & (1<<USB_LED_CAPS_LOCK) ? PSTR("-CAPS") : PSTR("-----"), false); |
135 | oled_write_P(PSTR(" "), false); | 135 | oled_write_P(PSTR(" "), false); |
136 | oled_write_P(led_usb_state & (1<<USB_LED_SCROLL_LOCK) ? PSTR("-SCRL") : PSTR("-----"), false); | 136 | oled_write_P(led_usb_state & (1<<USB_LED_SCROLL_LOCK) ? PSTR("-SCRL") : PSTR("-----"), false); |
137 | oled_write_P(PSTR(" "), false); | 137 | oled_write_P(PSTR(" "), false); |
138 | } | 138 | } |
139 | 139 | ||
140 | // Keylogger | 140 | // Keylogger |
@@ -195,35 +195,36 @@ void render_keylogger_status(void) { | |||
195 | // [OLED Init] ------------------------------------------------------// | 195 | // [OLED Init] ------------------------------------------------------// |
196 | 196 | ||
197 | // Rotate Screen | 197 | // Rotate Screen |
198 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 198 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { return OLED_ROTATION_180; } |
199 | return OLED_ROTATION_180; | ||
200 | } | ||
201 | 199 | ||
202 | // {OLED Task} ------------------------------------------------------// | 200 | // {OLED Task} ------------------------------------------------------// |
203 | void oled_task_user(void) { | 201 | bool oled_task_kb(void) { |
202 | if (!oled_task_user()) { | ||
203 | return false; | ||
204 | } | ||
204 | 205 | ||
205 | // MASTER SIDE | 206 | // MASTER SIDE |
206 | if (is_keyboard_master()) { | 207 | if (is_keyboard_master()) { |
207 | oled_write_P(oled_header, false); | 208 | oled_write_P(oled_header, false); |
208 | render_layer_state(); | 209 | render_layer_state(); |
209 | oled_write_P(oled_layer_keylog_separator, false); | 210 | oled_write_P(oled_layer_keylog_separator, false); |
210 | render_keylogger_status(); | 211 | render_keylogger_status(); |
211 | oled_set_cursor(20, 2); | 212 | oled_set_cursor(20, 2); |
212 | oled_write_P(oled_layer_line_end, false); | 213 | oled_write_P(oled_layer_line_end, false); |
213 | oled_write_P(oled_layer_keylog_bottom, false); | 214 | oled_write_P(oled_layer_keylog_bottom, false); |
214 | oled_write_P(oled_line_start, false); | 215 | oled_write_P(oled_line_start, false); |
215 | render_keylock_status(host_keyboard_leds()); | 216 | render_keylock_status(host_keyboard_leds()); |
216 | oled_write_P(oled_layer_line_end, false); | 217 | oled_write_P(oled_layer_line_end, false); |
217 | oled_write_P(oled_mods_bottom, false); | 218 | oled_write_P(oled_mods_bottom, false); |
218 | oled_write_P(oled_line_start, false); | 219 | oled_write_P(oled_line_start, false); |
219 | render_mod_status(get_mods() | get_oneshot_mods()); | 220 | render_mod_status(get_mods() | get_oneshot_mods()); |
220 | oled_write_P(oled_layer_line_end, false); | 221 | oled_write_P(oled_layer_line_end, false); |
221 | oled_write_P(oled_footer, false); | 222 | oled_write_P(oled_footer, false); |
222 | } | 223 | } |
223 | 224 | ||
224 | // SLAVE SIDE | 225 | // SLAVE SIDE |
225 | else { | 226 | else { |
226 | render_skeeb_logo(); | 227 | render_skeeb_logo(); |
227 | } | 228 | } |
229 | return false; | ||
228 | } | 230 | } |
229 | |||
diff --git a/keyboards/handwired/obuwunkunubi/spaget/keymaps/default/keymap.c b/keyboards/handwired/obuwunkunubi/spaget/keymaps/default/keymap.c index 482287740..c87852da5 100644 --- a/keyboards/handwired/obuwunkunubi/spaget/keymaps/default/keymap.c +++ b/keyboards/handwired/obuwunkunubi/spaget/keymaps/default/keymap.c | |||
@@ -342,7 +342,7 @@ void matrix_init_user(void) { | |||
342 | set_unicode_input_mode(UC_WINC); | 342 | set_unicode_input_mode(UC_WINC); |
343 | }; | 343 | }; |
344 | #ifdef OLED_ENABLE | 344 | #ifdef OLED_ENABLE |
345 | void oled_task_user(void) { | 345 | bool oled_task_user(void) { |
346 | oled_write_P(PSTR(" spaget v1\n\n"), false); | 346 | oled_write_P(PSTR(" spaget v1\n\n"), false); |
347 | 347 | ||
348 | // Host Keyboard Layer Status | 348 | // Host Keyboard Layer Status |
@@ -368,6 +368,7 @@ void oled_task_user(void) { | |||
368 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 368 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
369 | oled_write_P(led_state.caps_lock ? PSTR("CAPS ") : PSTR(" "), false); | 369 | oled_write_P(led_state.caps_lock ? PSTR("CAPS ") : PSTR(" "), false); |
370 | oled_write_P(led_state.scroll_lock ? PSTR("SCROLL ") : PSTR(" "), false); | 370 | oled_write_P(led_state.scroll_lock ? PSTR("SCROLL ") : PSTR(" "), false); |
371 | return false; | ||
371 | } | 372 | } |
372 | #endif | 373 | #endif |
373 | 374 | ||
diff --git a/keyboards/handwired/onekey/keymaps/oled/keymap.c b/keyboards/handwired/onekey/keymaps/oled/keymap.c index c19b6918c..e020d5e4b 100644 --- a/keyboards/handwired/onekey/keymaps/oled/keymap.c +++ b/keyboards/handwired/onekey/keymaps/oled/keymap.c | |||
@@ -361,7 +361,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
361 | return rotation; | 361 | return rotation; |
362 | } | 362 | } |
363 | 363 | ||
364 | void oled_task_user(void) { | 364 | bool oled_task_user(void) { |
365 | if (update_speed_test) { | 365 | if (update_speed_test) { |
366 | // Speed test mode - wait for screen update completion. | 366 | // Speed test mode - wait for screen update completion. |
367 | if (!oled_dirty) { | 367 | if (!oled_dirty) { |
@@ -450,6 +450,7 @@ void oled_task_user(void) { | |||
450 | oled_write_P(PSTR("Draw Once"), false); | 450 | oled_write_P(PSTR("Draw Once"), false); |
451 | break; | 451 | break; |
452 | } | 452 | } |
453 | return false; | ||
453 | } | 454 | } |
454 | 455 | ||
455 | void keyboard_post_init_user(void) { | 456 | void keyboard_post_init_user(void) { |
diff --git a/keyboards/handwired/owlet60/keymaps/oled_testing/keymap.c b/keyboards/handwired/owlet60/keymaps/oled_testing/keymap.c index 27a54d80f..8636ac753 100644 --- a/keyboards/handwired/owlet60/keymaps/oled_testing/keymap.c +++ b/keyboards/handwired/owlet60/keymaps/oled_testing/keymap.c | |||
@@ -66,7 +66,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
66 | //return OLED_ROTATION_180; | 66 | //return OLED_ROTATION_180; |
67 | return OLED_ROTATION_180; | 67 | return OLED_ROTATION_180; |
68 | } | 68 | } |
69 | void oled_task_user(void) { | 69 | bool oled_task_user(void) { |
70 | // Host Keyboard Layer Status | 70 | // Host Keyboard Layer Status |
71 | /*oled_write_P(PSTR("Lyr: "), false); | 71 | /*oled_write_P(PSTR("Lyr: "), false); |
72 | switch (get_highest_layer(layer_state)) { | 72 | switch (get_highest_layer(layer_state)) { |
@@ -92,5 +92,6 @@ void oled_task_user(void) { | |||
92 | }; | 92 | }; |
93 | 93 | ||
94 | oled_write_P(qmk_logo, false); | 94 | oled_write_P(qmk_logo, false); |
95 | return false; | ||
95 | } | 96 | } |
96 | #endif | 97 | #endif |
diff --git a/keyboards/handwired/pill60/keymaps/default/keymap.c b/keyboards/handwired/pill60/keymaps/default/keymap.c index 00f506bb4..38c5556fe 100644 --- a/keyboards/handwired/pill60/keymaps/default/keymap.c +++ b/keyboards/handwired/pill60/keymaps/default/keymap.c | |||
@@ -66,8 +66,9 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
66 | return rotation; | 66 | return rotation; |
67 | } | 67 | } |
68 | 68 | ||
69 | void oled_task_user(void) { | 69 | bool oled_task_user(void) { |
70 | render_oled(); | 70 | render_oled(); |
71 | return false; | ||
71 | } | 72 | } |
72 | 73 | ||
73 | #endif | 74 | #endif |
diff --git a/keyboards/handwired/split65/split65.c b/keyboards/handwired/split65/split65.c index 3b1dcadda..9d0831c02 100644 --- a/keyboards/handwired/split65/split65.c +++ b/keyboards/handwired/split65/split65.c | |||
@@ -18,11 +18,14 @@ | |||
18 | // OLED Code inspired by https://github.com/qmk/qmk_firmware/blob/master/keyboards/splitkb/kyria/rev1/rev1.c | 18 | // OLED Code inspired by https://github.com/qmk/qmk_firmware/blob/master/keyboards/splitkb/kyria/rev1/rev1.c |
19 | 19 | ||
20 | #ifdef OLED_ENABLE | 20 | #ifdef OLED_ENABLE |
21 | __attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 21 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
22 | return OLED_ROTATION_180; | 22 | return OLED_ROTATION_180; |
23 | } | 23 | } |
24 | 24 | ||
25 | __attribute__((weak)) void oled_task_user(void) { | 25 | bool oled_task_kb(void) { |
26 | if (!oled_task_user()) { | ||
27 | return false; | ||
28 | } | ||
26 | if (is_keyboard_master()) { | 29 | if (is_keyboard_master()) { |
27 | static const char PROGMEM qmk_logo[] = { | 30 | static const char PROGMEM qmk_logo[] = { |
28 | 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94, | 31 | 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94, |
@@ -126,5 +129,6 @@ __attribute__((weak)) void oled_task_user(void) { | |||
126 | }; | 129 | }; |
127 | oled_write_raw_P(split65_logo, sizeof(split65_logo)); | 130 | oled_write_raw_P(split65_logo, sizeof(split65_logo)); |
128 | } | 131 | } |
132 | return false; | ||
129 | } | 133 | } |
130 | #endif | 134 | #endif |
diff --git a/keyboards/handwired/swiftrax/koalafications/keymaps/default/keymap.c b/keyboards/handwired/swiftrax/koalafications/keymaps/default/keymap.c index e702c1899..c4ac4c47b 100644 --- a/keyboards/handwired/swiftrax/koalafications/keymaps/default/keymap.c +++ b/keyboards/handwired/swiftrax/koalafications/keymaps/default/keymap.c | |||
@@ -119,7 +119,8 @@ static void render_anim(void){ | |||
119 | } | 119 | } |
120 | } | 120 | } |
121 | 121 | ||
122 | void oled_task_user(void) { | 122 | bool oled_task_user(void) { |
123 | render_anim(); | 123 | render_anim(); |
124 | return false; | ||
124 | } | 125 | } |
125 | #endif | 126 | #endif |
diff --git a/keyboards/handwired/swiftrax/koalafications/keymaps/via/keymap.c b/keyboards/handwired/swiftrax/koalafications/keymaps/via/keymap.c index 973b36bff..b9ce8a8b4 100644 --- a/keyboards/handwired/swiftrax/koalafications/keymaps/via/keymap.c +++ b/keyboards/handwired/swiftrax/koalafications/keymaps/via/keymap.c | |||
@@ -119,7 +119,8 @@ static void render_anim(void){ | |||
119 | } | 119 | } |
120 | } | 120 | } |
121 | 121 | ||
122 | void oled_task_user(void) { | 122 | bool oled_task_user(void) { |
123 | render_anim(); | 123 | render_anim(); |
124 | return false; | ||
124 | } | 125 | } |
125 | #endif | 126 | #endif |
diff --git a/keyboards/handwired/swiftrax/the_galleon/keymaps/default/keymap.c b/keyboards/handwired/swiftrax/the_galleon/keymaps/default/keymap.c index efa8c2703..46bd189da 100644 --- a/keyboards/handwired/swiftrax/the_galleon/keymaps/default/keymap.c +++ b/keyboards/handwired/swiftrax/the_galleon/keymaps/default/keymap.c | |||
@@ -99,7 +99,8 @@ static void render_anim(void){ | |||
99 | } | 99 | } |
100 | } | 100 | } |
101 | 101 | ||
102 | void oled_task_user(void) { | 102 | bool oled_task_user(void) { |
103 | render_anim(); | 103 | render_anim(); |
104 | return false; | ||
104 | } | 105 | } |
105 | #endif | 106 | #endif |
diff --git a/keyboards/handwired/swiftrax/the_galleon/keymaps/via/keymap.c b/keyboards/handwired/swiftrax/the_galleon/keymaps/via/keymap.c index efa8c2703..46bd189da 100644 --- a/keyboards/handwired/swiftrax/the_galleon/keymaps/via/keymap.c +++ b/keyboards/handwired/swiftrax/the_galleon/keymaps/via/keymap.c | |||
@@ -99,7 +99,8 @@ static void render_anim(void){ | |||
99 | } | 99 | } |
100 | } | 100 | } |
101 | 101 | ||
102 | void oled_task_user(void) { | 102 | bool oled_task_user(void) { |
103 | render_anim(); | 103 | render_anim(); |
104 | return false; | ||
104 | } | 105 | } |
105 | #endif | 106 | #endif |
diff --git a/keyboards/helix/rev2/keymaps/default/oled_display.c b/keyboards/helix/rev2/keymaps/default/oled_display.c index 36a7cf0b1..4ee3f002d 100644 --- a/keyboards/helix/rev2/keymaps/default/oled_display.c +++ b/keyboards/helix/rev2/keymaps/default/oled_display.c | |||
@@ -208,7 +208,7 @@ void iota_gfx_task_user(void) { | |||
208 | matrix_update(&display, &matrix); | 208 | matrix_update(&display, &matrix); |
209 | } | 209 | } |
210 | # else | 210 | # else |
211 | void oled_task_user(void) { | 211 | bool oled_task_user(void) { |
212 | 212 | ||
213 | # if DEBUG_TO_SCREEN | 213 | # if DEBUG_TO_SCREEN |
214 | if (debug_enable) { | 214 | if (debug_enable) { |
@@ -223,6 +223,7 @@ void oled_task_user(void) { | |||
223 | render_rgbled_status(false); | 223 | render_rgbled_status(false); |
224 | render_layer_status(); | 224 | render_layer_status(); |
225 | } | 225 | } |
226 | return false; | ||
226 | } | 227 | } |
227 | # endif | 228 | # endif |
228 | #endif | 229 | #endif |
diff --git a/keyboards/helix/rev2/keymaps/edvorakjp/oled.c b/keyboards/helix/rev2/keymaps/edvorakjp/oled.c index 500a7bbf1..207aebc42 100644 --- a/keyboards/helix/rev2/keymaps/edvorakjp/oled.c +++ b/keyboards/helix/rev2/keymaps/edvorakjp/oled.c | |||
@@ -56,7 +56,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
56 | return is_keyboard_left() ? rotation : rotation ^ OLED_ROTATION_180; | 56 | return is_keyboard_left() ? rotation : rotation ^ OLED_ROTATION_180; |
57 | } | 57 | } |
58 | 58 | ||
59 | void oled_task_user(void) { | 59 | bool oled_task_user(void) { |
60 | if (is_keyboard_left()) { | 60 | if (is_keyboard_left()) { |
61 | render_mode_icon(!get_enable_kc_lang()); | 61 | render_mode_icon(!get_enable_kc_lang()); |
62 | render_layer_state(); | 62 | render_layer_state(); |
@@ -64,5 +64,6 @@ void oled_task_user(void) { | |||
64 | } else { | 64 | } else { |
65 | render_logo(); | 65 | render_logo(); |
66 | } | 66 | } |
67 | return false; | ||
67 | } | 68 | } |
68 | #endif // OLED_ENABLE | 69 | #endif // OLED_ENABLE |
diff --git a/keyboards/helix/rev2/keymaps/five_rows/oled_display.c b/keyboards/helix/rev2/keymaps/five_rows/oled_display.c index fcbd81c9b..dc6de02b1 100644 --- a/keyboards/helix/rev2/keymaps/five_rows/oled_display.c +++ b/keyboards/helix/rev2/keymaps/five_rows/oled_display.c | |||
@@ -259,7 +259,7 @@ void iota_gfx_task_user(void) { | |||
259 | matrix_update(&display, &matrix); | 259 | matrix_update(&display, &matrix); |
260 | } | 260 | } |
261 | # else | 261 | # else |
262 | void oled_task_user(void) { | 262 | bool oled_task_user(void) { |
263 | 263 | ||
264 | # if DEBUG_TO_SCREEN | 264 | # if DEBUG_TO_SCREEN |
265 | if (debug_enable) { | 265 | if (debug_enable) { |
@@ -272,6 +272,7 @@ void oled_task_user(void) { | |||
272 | }else{ | 272 | }else{ |
273 | render_logo(); | 273 | render_logo(); |
274 | } | 274 | } |
275 | return false; | ||
275 | } | 276 | } |
276 | # endif | 277 | # endif |
277 | 278 | ||
diff --git a/keyboards/helix/rev3_4rows/keymaps/default/oled_display.c b/keyboards/helix/rev3_4rows/keymaps/default/oled_display.c index fb1a6f9f8..e951f627c 100644 --- a/keyboards/helix/rev3_4rows/keymaps/default/oled_display.c +++ b/keyboards/helix/rev3_4rows/keymaps/default/oled_display.c | |||
@@ -101,12 +101,13 @@ static void render_rgbled_status(bool full) { | |||
101 | #endif | 101 | #endif |
102 | } | 102 | } |
103 | 103 | ||
104 | void oled_task_user(void) { | 104 | bool oled_task_user(void) { |
105 | if(is_keyboard_master()){ | 105 | if(is_keyboard_master()){ |
106 | render_status(); | 106 | render_status(); |
107 | }else{ | 107 | }else{ |
108 | render_logo(); | 108 | render_logo(); |
109 | render_rgbled_status(true); | 109 | render_rgbled_status(true); |
110 | } | 110 | } |
111 | return false; | ||
111 | } | 112 | } |
112 | #endif | 113 | #endif |
diff --git a/keyboards/helix/rev3_4rows/keymaps/via/oled_display.c b/keyboards/helix/rev3_4rows/keymaps/via/oled_display.c index fb1a6f9f8..e951f627c 100644 --- a/keyboards/helix/rev3_4rows/keymaps/via/oled_display.c +++ b/keyboards/helix/rev3_4rows/keymaps/via/oled_display.c | |||
@@ -101,12 +101,13 @@ static void render_rgbled_status(bool full) { | |||
101 | #endif | 101 | #endif |
102 | } | 102 | } |
103 | 103 | ||
104 | void oled_task_user(void) { | 104 | bool oled_task_user(void) { |
105 | if(is_keyboard_master()){ | 105 | if(is_keyboard_master()){ |
106 | render_status(); | 106 | render_status(); |
107 | }else{ | 107 | }else{ |
108 | render_logo(); | 108 | render_logo(); |
109 | render_rgbled_status(true); | 109 | render_rgbled_status(true); |
110 | } | 110 | } |
111 | return false; | ||
111 | } | 112 | } |
112 | #endif | 113 | #endif |
diff --git a/keyboards/helix/rev3_4rows/rev3_4rows.c b/keyboards/helix/rev3_4rows/rev3_4rows.c index 963cc744e..704f91551 100644 --- a/keyboards/helix/rev3_4rows/rev3_4rows.c +++ b/keyboards/helix/rev3_4rows/rev3_4rows.c | |||
@@ -83,8 +83,8 @@ char *sprint2d(char *buf, char *leadstr, int data) { | |||
83 | return sprint_decimal(buf, data); | 83 | return sprint_decimal(buf, data); |
84 | } | 84 | } |
85 | 85 | ||
86 | __attribute__((weak)) | 86 | bool oled_task_kb(void) { |
87 | void oled_task_user(void) { | 87 | if (!oled_task_user()) { return false; } |
88 | static const char PROGMEM helix_logo[] = { | 88 | static const char PROGMEM helix_logo[] = { |
89 | 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, | 89 | 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, |
90 | 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, | 90 | 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, |
@@ -109,5 +109,6 @@ void oled_task_user(void) { | |||
109 | } else { | 109 | } else { |
110 | oled_write_P(helix_logo, false); | 110 | oled_write_P(helix_logo, false); |
111 | } | 111 | } |
112 | return false; | ||
112 | } | 113 | } |
113 | #endif | 114 | #endif |
diff --git a/keyboards/helix/rev3_5rows/keymaps/default/oled_display.c b/keyboards/helix/rev3_5rows/keymaps/default/oled_display.c index fb1a6f9f8..e951f627c 100644 --- a/keyboards/helix/rev3_5rows/keymaps/default/oled_display.c +++ b/keyboards/helix/rev3_5rows/keymaps/default/oled_display.c | |||
@@ -101,12 +101,13 @@ static void render_rgbled_status(bool full) { | |||
101 | #endif | 101 | #endif |
102 | } | 102 | } |
103 | 103 | ||
104 | void oled_task_user(void) { | 104 | bool oled_task_user(void) { |
105 | if(is_keyboard_master()){ | 105 | if(is_keyboard_master()){ |
106 | render_status(); | 106 | render_status(); |
107 | }else{ | 107 | }else{ |
108 | render_logo(); | 108 | render_logo(); |
109 | render_rgbled_status(true); | 109 | render_rgbled_status(true); |
110 | } | 110 | } |
111 | return false; | ||
111 | } | 112 | } |
112 | #endif | 113 | #endif |
diff --git a/keyboards/helix/rev3_5rows/keymaps/five_rows/oled_display.c b/keyboards/helix/rev3_5rows/keymaps/five_rows/oled_display.c index e8ba0d720..cee415ad3 100644 --- a/keyboards/helix/rev3_5rows/keymaps/five_rows/oled_display.c +++ b/keyboards/helix/rev3_5rows/keymaps/five_rows/oled_display.c | |||
@@ -214,7 +214,7 @@ void iota_gfx_task_user(void) { | |||
214 | matrix_update(&display, &matrix); | 214 | matrix_update(&display, &matrix); |
215 | } | 215 | } |
216 | # else | 216 | # else |
217 | void oled_task_user(void) { | 217 | bool oled_task_user(void) { |
218 | 218 | ||
219 | # if DEBUG_TO_SCREEN | 219 | # if DEBUG_TO_SCREEN |
220 | if (debug_enable) { | 220 | if (debug_enable) { |
@@ -227,6 +227,7 @@ void oled_task_user(void) { | |||
227 | }else{ | 227 | }else{ |
228 | render_logo(); | 228 | render_logo(); |
229 | } | 229 | } |
230 | return false; | ||
230 | } | 231 | } |
231 | # endif | 232 | # endif |
232 | 233 | ||
diff --git a/keyboards/helix/rev3_5rows/keymaps/via/oled_display.c b/keyboards/helix/rev3_5rows/keymaps/via/oled_display.c index fb1a6f9f8..e951f627c 100644 --- a/keyboards/helix/rev3_5rows/keymaps/via/oled_display.c +++ b/keyboards/helix/rev3_5rows/keymaps/via/oled_display.c | |||
@@ -101,12 +101,13 @@ static void render_rgbled_status(bool full) { | |||
101 | #endif | 101 | #endif |
102 | } | 102 | } |
103 | 103 | ||
104 | void oled_task_user(void) { | 104 | bool oled_task_user(void) { |
105 | if(is_keyboard_master()){ | 105 | if(is_keyboard_master()){ |
106 | render_status(); | 106 | render_status(); |
107 | }else{ | 107 | }else{ |
108 | render_logo(); | 108 | render_logo(); |
109 | render_rgbled_status(true); | 109 | render_rgbled_status(true); |
110 | } | 110 | } |
111 | return false; | ||
111 | } | 112 | } |
112 | #endif | 113 | #endif |
diff --git a/keyboards/helix/rev3_5rows/rev3_5rows.c b/keyboards/helix/rev3_5rows/rev3_5rows.c index 963cc744e..704f91551 100644 --- a/keyboards/helix/rev3_5rows/rev3_5rows.c +++ b/keyboards/helix/rev3_5rows/rev3_5rows.c | |||
@@ -83,8 +83,8 @@ char *sprint2d(char *buf, char *leadstr, int data) { | |||
83 | return sprint_decimal(buf, data); | 83 | return sprint_decimal(buf, data); |
84 | } | 84 | } |
85 | 85 | ||
86 | __attribute__((weak)) | 86 | bool oled_task_kb(void) { |
87 | void oled_task_user(void) { | 87 | if (!oled_task_user()) { return false; } |
88 | static const char PROGMEM helix_logo[] = { | 88 | static const char PROGMEM helix_logo[] = { |
89 | 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, | 89 | 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, |
90 | 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, | 90 | 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, |
@@ -109,5 +109,6 @@ void oled_task_user(void) { | |||
109 | } else { | 109 | } else { |
110 | oled_write_P(helix_logo, false); | 110 | oled_write_P(helix_logo, false); |
111 | } | 111 | } |
112 | return false; | ||
112 | } | 113 | } |
113 | #endif | 114 | #endif |
diff --git a/keyboards/jagdpietr/drakon/drakon.c b/keyboards/jagdpietr/drakon/drakon.c index 2aec1f4b5..65d950305 100644 --- a/keyboards/jagdpietr/drakon/drakon.c +++ b/keyboards/jagdpietr/drakon/drakon.c | |||
@@ -37,10 +37,8 @@ _FN, | |||
37 | _Lyr2 | 37 | _Lyr2 |
38 | }; | 38 | }; |
39 | 39 | ||
40 | __attribute__((weak)) | 40 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
41 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 41 | return OLED_ROTATION_90; |
42 | return OLED_ROTATION_90; // flips the display 90 degrees if offhand | ||
43 | |||
44 | } | 42 | } |
45 | 43 | ||
46 | static void render_status(void) { | 44 | static void render_status(void) { |
@@ -210,8 +208,11 @@ static void render_anim(void) { | |||
210 | } | 208 | } |
211 | } | 209 | } |
212 | } | 210 | } |
213 | __attribute__((weak)) | 211 | |
214 | void oled_task_user(void) { | 212 | bool oled_task_kb(void) { |
213 | if (!oled_task_user()) { | ||
214 | return false; | ||
215 | } | ||
215 | 216 | ||
216 | render_anim(); | 217 | render_anim(); |
217 | oled_set_cursor(0,6); | 218 | oled_set_cursor(0,6); |
@@ -221,6 +222,7 @@ void oled_task_user(void) { | |||
221 | 222 | ||
222 | render_status(); | 223 | render_status(); |
223 | 224 | ||
225 | return false; | ||
224 | } | 226 | } |
225 | 227 | ||
226 | #endif | 228 | #endif |
diff --git a/keyboards/keybage/radpad/keymaps/default/keymap.c b/keyboards/keybage/radpad/keymaps/default/keymap.c index 190400f7f..f2d712bd6 100644 --- a/keyboards/keybage/radpad/keymaps/default/keymap.c +++ b/keyboards/keybage/radpad/keymaps/default/keymap.c | |||
@@ -126,7 +126,7 @@ static void render_logo(void) { | |||
126 | oled_write_raw_P(radpad_logo, sizeof(radpad_logo)); | 126 | oled_write_raw_P(radpad_logo, sizeof(radpad_logo)); |
127 | } | 127 | } |
128 | 128 | ||
129 | void oled_task_user(void) { | 129 | bool oled_task_user(void) { |
130 | if (oled_logo_cleared) { | 130 | if (oled_logo_cleared) { |
131 | render_status(); | 131 | render_status(); |
132 | } else { | 132 | } else { |
@@ -138,5 +138,6 @@ void oled_task_user(void) { | |||
138 | render_logo(); | 138 | render_logo(); |
139 | } | 139 | } |
140 | } | 140 | } |
141 | return false; | ||
141 | } | 142 | } |
142 | #endif | 143 | #endif |
diff --git a/keyboards/keycapsss/kimiko/keymaps/default/keymap.c b/keyboards/keycapsss/kimiko/keymaps/default/keymap.c index 17bc1c7b3..5a33d527c 100644 --- a/keyboards/keycapsss/kimiko/keymaps/default/keymap.c +++ b/keyboards/keycapsss/kimiko/keymaps/default/keymap.c | |||
@@ -321,12 +321,13 @@ void render_status_secondary(void) { | |||
321 | render_space(); | 321 | render_space(); |
322 | } | 322 | } |
323 | 323 | ||
324 | void oled_task_user(void) { | 324 | bool oled_task_user(void) { |
325 | if (is_keyboard_master()) { | 325 | if (is_keyboard_master()) { |
326 | render_status_main(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 326 | render_status_main(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
327 | } else { | 327 | } else { |
328 | render_status_secondary(); | 328 | render_status_secondary(); |
329 | } | 329 | } |
330 | return false; | ||
330 | } | 331 | } |
331 | 332 | ||
332 | #endif | 333 | #endif |
diff --git a/keyboards/keycapsss/plaid_pad/keymaps/default/keymap.c b/keyboards/keycapsss/plaid_pad/keymaps/default/keymap.c index 714a5c80f..238218536 100644 --- a/keyboards/keycapsss/plaid_pad/keymaps/default/keymap.c +++ b/keyboards/keycapsss/plaid_pad/keymaps/default/keymap.c | |||
@@ -35,8 +35,9 @@ void keyboard_post_init_user(void) { | |||
35 | 35 | ||
36 | // Rev3 and above only | 36 | // Rev3 and above only |
37 | #ifdef OLED_ENABLE | 37 | #ifdef OLED_ENABLE |
38 | void oled_task_user(void) { | 38 | bool oled_task_user(void) { |
39 | oled_write_ln_P(PSTR("Plaid-Pad ///////////"), false); | 39 | oled_write_ln_P(PSTR("Plaid-Pad ///////////"), false); |
40 | return false; | ||
40 | } | 41 | } |
41 | #endif | 42 | #endif |
42 | 43 | ||
diff --git a/keyboards/keycapsss/plaid_pad/keymaps/oled/keymap.c b/keyboards/keycapsss/plaid_pad/keymaps/oled/keymap.c index 014167601..540a735fc 100644 --- a/keyboards/keycapsss/plaid_pad/keymaps/oled/keymap.c +++ b/keyboards/keycapsss/plaid_pad/keymaps/oled/keymap.c | |||
@@ -117,9 +117,10 @@ void oled_render_layer_state(void) { | |||
117 | } | 117 | } |
118 | 118 | ||
119 | 119 | ||
120 | void oled_task_user(void) { | 120 | bool oled_task_user(void) { |
121 | oled_write_ln_P(PSTR("Plaid-Pad ///////////"), false); | 121 | oled_write_ln_P(PSTR("Plaid-Pad ///////////"), false); |
122 | oled_render_layer_state(); | 122 | oled_render_layer_state(); |
123 | return false; | ||
123 | } | 124 | } |
124 | 125 | ||
125 | #endif | 126 | #endif |
diff --git a/keyboards/keycapsss/plaid_pad/keymaps/via/keymap.c b/keyboards/keycapsss/plaid_pad/keymaps/via/keymap.c index 673ea1c20..7d48591cd 100644 --- a/keyboards/keycapsss/plaid_pad/keymaps/via/keymap.c +++ b/keyboards/keycapsss/plaid_pad/keymaps/via/keymap.c | |||
@@ -62,8 +62,9 @@ void keyboard_post_init_user(void) { | |||
62 | 62 | ||
63 | // Rev3 and above only | 63 | // Rev3 and above only |
64 | #ifdef OLED_ENABLE | 64 | #ifdef OLED_ENABLE |
65 | void oled_task_user(void) { | 65 | bool oled_task_user(void) { |
66 | oled_write_ln_P(PSTR("Plaid-Pad ///////////"), false); | 66 | oled_write_ln_P(PSTR("Plaid-Pad ///////////"), false); |
67 | return false; | ||
67 | } | 68 | } |
68 | #endif | 69 | #endif |
69 | 70 | ||
diff --git a/keyboards/kikoslab/kl90/keymaps/default/keymap.c b/keyboards/kikoslab/kl90/keymaps/default/keymap.c index 94ebe2633..4dbffe8f7 100644 --- a/keyboards/kikoslab/kl90/keymaps/default/keymap.c +++ b/keyboards/kikoslab/kl90/keymaps/default/keymap.c | |||
@@ -140,7 +140,8 @@ static void render_anim(void){ | |||
140 | } | 140 | } |
141 | } | 141 | } |
142 | 142 | ||
143 | void oled_task_user(void) { | 143 | bool oled_task_user(void) { |
144 | render_anim(); | 144 | render_anim(); |
145 | return false; | ||
145 | } | 146 | } |
146 | #endif | 147 | #endif |
diff --git a/keyboards/kikoslab/kl90/keymaps/via/keymap.c b/keyboards/kikoslab/kl90/keymaps/via/keymap.c index 94ebe2633..4dbffe8f7 100644 --- a/keyboards/kikoslab/kl90/keymaps/via/keymap.c +++ b/keyboards/kikoslab/kl90/keymaps/via/keymap.c | |||
@@ -140,7 +140,8 @@ static void render_anim(void){ | |||
140 | } | 140 | } |
141 | } | 141 | } |
142 | 142 | ||
143 | void oled_task_user(void) { | 143 | bool oled_task_user(void) { |
144 | render_anim(); | 144 | render_anim(); |
145 | return false; | ||
145 | } | 146 | } |
146 | #endif | 147 | #endif |
diff --git a/keyboards/kingly_keys/romac/keymaps/boss566y/keymap.c b/keyboards/kingly_keys/romac/keymaps/boss566y/keymap.c index 45e83f761..6acb55dd5 100755 --- a/keyboards/kingly_keys/romac/keymaps/boss566y/keymap.c +++ b/keyboards/kingly_keys/romac/keymaps/boss566y/keymap.c | |||
@@ -76,7 +76,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
76 | return OLED_ROTATION_270; | 76 | return OLED_ROTATION_270; |
77 | } | 77 | } |
78 | 78 | ||
79 | void oled_task_user(void) { | 79 | bool oled_task_user(void) { |
80 | // Host Keyboard Layer Status | 80 | // Host Keyboard Layer Status |
81 | sprintf(oled_layer,"Layer\nL: %d\n",get_highest_layer(layer_state)); | 81 | sprintf(oled_layer,"Layer\nL: %d\n",get_highest_layer(layer_state)); |
82 | oled_write(oled_layer,false); | 82 | oled_write(oled_layer,false); |
@@ -86,5 +86,6 @@ void oled_task_user(void) { | |||
86 | oled_write_P(led_state.num_lock ? PSTR("NLCK ") : PSTR(" "), false); | 86 | oled_write_P(led_state.num_lock ? PSTR("NLCK ") : PSTR(" "), false); |
87 | oled_write_P(led_state.caps_lock ? PSTR("CAPS ") : PSTR(" "), false); | 87 | oled_write_P(led_state.caps_lock ? PSTR("CAPS ") : PSTR(" "), false); |
88 | oled_write_P(led_state.scroll_lock ? PSTR("SCRLK") : PSTR(" "), false); | 88 | oled_write_P(led_state.scroll_lock ? PSTR("SCRLK") : PSTR(" "), false); |
89 | return false; | ||
89 | } | 90 | } |
90 | #endif | 91 | #endif |
diff --git a/keyboards/kingly_keys/romac_plus/keymaps/default/keymap.c b/keyboards/kingly_keys/romac_plus/keymaps/default/keymap.c index 29262b8c3..62c234915 100644 --- a/keyboards/kingly_keys/romac_plus/keymaps/default/keymap.c +++ b/keyboards/kingly_keys/romac_plus/keymaps/default/keymap.c | |||
@@ -41,7 +41,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
41 | return OLED_ROTATION_270; // flips the display 180 degrees if offhand | 41 | return OLED_ROTATION_270; // flips the display 180 degrees if offhand |
42 | } | 42 | } |
43 | 43 | ||
44 | void oled_task_user(void) { | 44 | bool oled_task_user(void) { |
45 | // Host Keyboard Layer Status | 45 | // Host Keyboard Layer Status |
46 | oled_write_P(PSTR("Let's\nbuild\nsome-\nthing\nto-\nget-\nher!"), false); | 46 | oled_write_P(PSTR("Let's\nbuild\nsome-\nthing\nto-\nget-\nher!"), false); |
47 | switch (get_highest_layer(layer_state)) { | 47 | switch (get_highest_layer(layer_state)) { |
@@ -61,5 +61,7 @@ void oled_task_user(void) { | |||
61 | oled_write_P(IS_LED_ON(led_usb_state, USB_LED_NUM_LOCK) ? PSTR("NLCK ") : PSTR(" "), false); | 61 | oled_write_P(IS_LED_ON(led_usb_state, USB_LED_NUM_LOCK) ? PSTR("NLCK ") : PSTR(" "), false); |
62 | oled_write_P(IS_LED_ON(led_usb_state, USB_LED_CAPS_LOCK) ? PSTR("CAPS ") : PSTR(" "), false); | 62 | oled_write_P(IS_LED_ON(led_usb_state, USB_LED_CAPS_LOCK) ? PSTR("CAPS ") : PSTR(" "), false); |
63 | oled_write_P(IS_LED_ON(led_usb_state, USB_LED_SCROLL_LOCK) ? PSTR("SCRLK") : PSTR(" "), false); | 63 | oled_write_P(IS_LED_ON(led_usb_state, USB_LED_SCROLL_LOCK) ? PSTR("SCRLK") : PSTR(" "), false); |
64 | |||
65 | return false; | ||
64 | } | 66 | } |
65 | #endif | 67 | #endif |
diff --git a/keyboards/kiwikey/wanderland/keymaps/stanrc85/keymap.c b/keyboards/kiwikey/wanderland/keymaps/stanrc85/keymap.c index de683e641..c535306af 100644 --- a/keyboards/kiwikey/wanderland/keymaps/stanrc85/keymap.c +++ b/keyboards/kiwikey/wanderland/keymaps/stanrc85/keymap.c | |||
@@ -51,7 +51,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
51 | }; | 51 | }; |
52 | 52 | ||
53 | #ifdef OLED_ENABLE | 53 | #ifdef OLED_ENABLE |
54 | void oled_task_user(void) { | 54 | bool oled_task_user(void) { |
55 | static const char PROGMEM qmk_logo[] = { | 55 | static const char PROGMEM qmk_logo[] = { |
56 | 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, | 56 | 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, |
57 | 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, | 57 | 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, |
@@ -81,5 +81,7 @@ void oled_task_user(void) { | |||
81 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 81 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
82 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 82 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
83 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 83 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
84 | |||
85 | return false; | ||
84 | } | 86 | } |
85 | #endif | 87 | #endif |
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 | ||
144 | void oled_task_user(void) { | 144 | bool 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; } | 43 | oled_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 */ |
46 | static void render_goblin_logo(void) { | 48 | static 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) { | 77 | bool 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 |
diff --git a/keyboards/latinpad/keymaps/default/keymap.c b/keyboards/latinpad/keymaps/default/keymap.c index eebbd6265..b6606e6be 100644 --- a/keyboards/latinpad/keymaps/default/keymap.c +++ b/keyboards/latinpad/keymaps/default/keymap.c | |||
@@ -49,7 +49,10 @@ static void render_logo(void) { | |||
49 | } | 49 | } |
50 | 50 | ||
51 | #ifdef OLED_ENABLE | 51 | #ifdef OLED_ENABLE |
52 | void oled_task_user(void) { render_logo(); } | 52 | bool oled_task_user(void) { |
53 | render_logo(); | ||
54 | return false; | ||
55 | } | ||
53 | #endif | 56 | #endif |
54 | 57 | ||
55 | bool encoder_update_user(uint8_t index, bool clockwise) { | 58 | bool encoder_update_user(uint8_t index, bool clockwise) { |
diff --git a/keyboards/latinpad/keymaps/via/keymap.c b/keyboards/latinpad/keymaps/via/keymap.c index 04d9ad905..12d7e910e 100644 --- a/keyboards/latinpad/keymaps/via/keymap.c +++ b/keyboards/latinpad/keymaps/via/keymap.c | |||
@@ -47,7 +47,10 @@ static void render_logo(void) { | |||
47 | } | 47 | } |
48 | 48 | ||
49 | #ifdef OLED_ENABLE | 49 | #ifdef OLED_ENABLE |
50 | void oled_task_user(void) { render_logo(); } | 50 | bool oled_task_user(void) { |
51 | render_logo(); | ||
52 | return false; | ||
53 | } | ||
51 | #endif | 54 | #endif |
52 | 55 | ||
53 | bool encoder_update_user(uint8_t index, bool clockwise) { | 56 | bool encoder_update_user(uint8_t index, bool clockwise) { |
diff --git a/keyboards/latinpadble/keymaps/default/keymap.c b/keyboards/latinpadble/keymaps/default/keymap.c index ad6f7f31d..3fed6c0cb 100644 --- a/keyboards/latinpadble/keymaps/default/keymap.c +++ b/keyboards/latinpadble/keymaps/default/keymap.c | |||
@@ -35,7 +35,10 @@ static void render_logo(void) { | |||
35 | } | 35 | } |
36 | 36 | ||
37 | #ifdef OLED_ENABLE | 37 | #ifdef OLED_ENABLE |
38 | void oled_task_user(void) { render_logo(); } | 38 | bool oled_task_user(void) { |
39 | render_logo(); | ||
40 | return false; | ||
41 | } | ||
39 | #endif | 42 | #endif |
40 | 43 | ||
41 | bool encoder_update_user(uint8_t index, bool clockwise) { | 44 | bool encoder_update_user(uint8_t index, bool clockwise) { |
diff --git a/keyboards/latinpadble/keymaps/via/keymap.c b/keyboards/latinpadble/keymaps/via/keymap.c index cfcea7388..2c4cc5f40 100644 --- a/keyboards/latinpadble/keymaps/via/keymap.c +++ b/keyboards/latinpadble/keymaps/via/keymap.c | |||
@@ -64,7 +64,10 @@ static void render_logo(void) { | |||
64 | } | 64 | } |
65 | 65 | ||
66 | #ifdef OLED_ENABLE | 66 | #ifdef OLED_ENABLE |
67 | void oled_task_user(void) { render_logo(); } | 67 | bool oled_task_user(void) { |
68 | render_logo(); | ||
69 | return false; | ||
70 | } | ||
68 | #endif | 71 | #endif |
69 | 72 | ||
70 | bool encoder_update_user(uint8_t index, bool clockwise) { | 73 | bool encoder_update_user(uint8_t index, bool clockwise) { |
diff --git a/keyboards/lck75/lck75.c b/keyboards/lck75/lck75.c index 52ccdcfd0..55650681a 100644 --- a/keyboards/lck75/lck75.c +++ b/keyboards/lck75/lck75.c | |||
@@ -33,11 +33,14 @@ bool encoder_update_kb(uint8_t index, bool clockwise) { | |||
33 | #define ANIM_FRAME_DURATION 200 | 33 | #define ANIM_FRAME_DURATION 200 |
34 | #define ANIM_SIZE 512 | 34 | #define ANIM_SIZE 512 |
35 | #ifdef OLED_ENABLE | 35 | #ifdef OLED_ENABLE |
36 | __attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 36 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
37 | return OLED_ROTATION_180; | 37 | return OLED_ROTATION_180; |
38 | } | 38 | } |
39 | 39 | ||
40 | __attribute__((weak)) void oled_task_user(void) { | 40 | bool oled_task_kb(void) { |
41 | if (!oled_task_user()) { | ||
42 | return false; | ||
43 | } | ||
41 | static uint32_t anim_timer = 0; | 44 | static uint32_t anim_timer = 0; |
42 | static uint32_t anim_sleep = 0; | 45 | static uint32_t anim_sleep = 0; |
43 | static uint8_t current_idle_frame = 0; | 46 | static uint8_t current_idle_frame = 0; |
@@ -140,6 +143,6 @@ static uint8_t current_tap_frame = 0; | |||
140 | } | 143 | } |
141 | } | 144 | } |
142 | } | 145 | } |
143 | 146 | return false; | |
144 | } | 147 | } |
145 | #endif | 148 | #endif |
diff --git a/keyboards/le_chiffre/keymaps/default/keymap.c b/keyboards/le_chiffre/keymaps/default/keymap.c index 3de991b55..45fee56a9 100644 --- a/keyboards/le_chiffre/keymaps/default/keymap.c +++ b/keyboards/le_chiffre/keymaps/default/keymap.c | |||
@@ -185,13 +185,15 @@ void render_mod_status(uint8_t modifiers) { | |||
185 | oled_write_ln_P(PSTR("GUI"), (modifiers & MOD_MASK_GUI)); | 185 | oled_write_ln_P(PSTR("GUI"), (modifiers & MOD_MASK_GUI)); |
186 | } | 186 | } |
187 | 187 | ||
188 | void oled_task_user(void) { | 188 | bool oled_task_user(void) { |
189 | render_lechiffre_logo(); | 189 | render_lechiffre_logo(); |
190 | oled_set_cursor(0,3); | 190 | oled_set_cursor(0,3); |
191 | render_layer_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 191 | render_layer_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
192 | render_mod_status(get_mods()|get_oneshot_mods()); | 192 | render_mod_status(get_mods()|get_oneshot_mods()); |
193 | render_keylock_status(host_keyboard_led_state()); | 193 | render_keylock_status(host_keyboard_led_state()); |
194 | render_keylogger_status(); | 194 | render_keylogger_status(); |
195 | |||
196 | return false; | ||
195 | } | 197 | } |
196 | 198 | ||
197 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 199 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
diff --git a/keyboards/le_chiffre/keymaps/via/keymap.c b/keyboards/le_chiffre/keymaps/via/keymap.c index 59cf17009..10a2fb0d4 100644 --- a/keyboards/le_chiffre/keymaps/via/keymap.c +++ b/keyboards/le_chiffre/keymaps/via/keymap.c | |||
@@ -144,13 +144,14 @@ void render_mod_status(uint8_t modifiers) { | |||
144 | oled_write_ln_P(PSTR("GUI"), (modifiers & MOD_MASK_GUI)); | 144 | oled_write_ln_P(PSTR("GUI"), (modifiers & MOD_MASK_GUI)); |
145 | } | 145 | } |
146 | 146 | ||
147 | void oled_task_user(void) { | 147 | bool oled_task_user(void) { |
148 | render_lechiffre_logo(); | 148 | render_lechiffre_logo(); |
149 | oled_set_cursor(0,3); | 149 | oled_set_cursor(0,3); |
150 | // render_layer_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 150 | // render_layer_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
151 | render_mod_status(get_mods()|get_oneshot_mods()); | 151 | render_mod_status(get_mods()|get_oneshot_mods()); |
152 | render_keylock_status(host_keyboard_led_state()); | 152 | render_keylock_status(host_keyboard_led_state()); |
153 | render_keylogger_status(); | 153 | render_keylogger_status(); |
154 | return false; | ||
154 | } | 155 | } |
155 | 156 | ||
156 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 157 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
diff --git a/keyboards/lefty/lefty.c b/keyboards/lefty/lefty.c index ba4ac3438..26f5d0496 100644 --- a/keyboards/lefty/lefty.c +++ b/keyboards/lefty/lefty.c | |||
@@ -17,7 +17,10 @@ | |||
17 | #include "lefty.h" | 17 | #include "lefty.h" |
18 | 18 | ||
19 | #ifdef OLED_ENABLE | 19 | #ifdef OLED_ENABLE |
20 | __attribute__((weak)) void oled_task_user(void) { | 20 | bool oled_task_kb(void) { |
21 | if (!oled_task_user()) { | ||
22 | return false; | ||
23 | } | ||
21 | // Host Keyboard Layer Status | 24 | // Host Keyboard Layer Status |
22 | oled_write_P(PSTR("Layer: "), false); | 25 | oled_write_P(PSTR("Layer: "), false); |
23 | 26 | ||
diff --git a/keyboards/lily58/keymaps/barabas/keymap.c b/keyboards/lily58/keymaps/barabas/keymap.c index 00d6045d4..64ef3cfff 100644 --- a/keyboards/lily58/keymaps/barabas/keymap.c +++ b/keyboards/lily58/keymaps/barabas/keymap.c | |||
@@ -171,7 +171,7 @@ void write_layer_state(void) { | |||
171 | oled_advance_page(true); | 171 | oled_advance_page(true); |
172 | } | 172 | } |
173 | 173 | ||
174 | void oled_task_user(void) { | 174 | bool oled_task_user(void) { |
175 | if (is_keyboard_master()) { | 175 | if (is_keyboard_master()) { |
176 | write_layer_state(); | 176 | write_layer_state(); |
177 | oled_write_ln(read_keylog(), false); | 177 | oled_write_ln(read_keylog(), false); |
@@ -179,6 +179,7 @@ void oled_task_user(void) { | |||
179 | } else { | 179 | } else { |
180 | oled_write(read_logo(), false); | 180 | oled_write(read_logo(), false); |
181 | } | 181 | } |
182 | return false; | ||
182 | } | 183 | } |
183 | #endif // OLED_ENABLE | 184 | #endif // OLED_ENABLE |
184 | 185 | ||
diff --git a/keyboards/lily58/keymaps/chuan/keymap.c b/keyboards/lily58/keymaps/chuan/keymap.c index 29e5aae19..1e0923a3c 100644 --- a/keyboards/lily58/keymaps/chuan/keymap.c +++ b/keyboards/lily58/keymaps/chuan/keymap.c | |||
@@ -152,7 +152,7 @@ const char *read_timelog(void); | |||
152 | 152 | ||
153 | char encoder_debug[24]; | 153 | char encoder_debug[24]; |
154 | 154 | ||
155 | void oled_task_user(void) { | 155 | bool oled_task_user(void) { |
156 | // Host Keyboard Layer Status | 156 | // Host Keyboard Layer Status |
157 | snprintf(encoder_debug, sizeof(encoder_debug), "%i %i", counter, lastIndex ); | 157 | snprintf(encoder_debug, sizeof(encoder_debug), "%i %i", counter, lastIndex ); |
158 | if (is_keyboard_master()) { | 158 | if (is_keyboard_master()) { |
@@ -168,6 +168,7 @@ void oled_task_user(void) { | |||
168 | oled_write(read_logo(), false); | 168 | oled_write(read_logo(), false); |
169 | // oled_write_ln(encoder_debug, false); | 169 | // oled_write_ln(encoder_debug, false); |
170 | } | 170 | } |
171 | return false; | ||
171 | } | 172 | } |
172 | #endif //OLED_ENABLE | 173 | #endif //OLED_ENABLE |
173 | 174 | ||
diff --git a/keyboards/lily58/keymaps/cykedev/keymap.c b/keyboards/lily58/keymaps/cykedev/keymap.c index 460afb229..75cdc04fe 100644 --- a/keyboards/lily58/keymaps/cykedev/keymap.c +++ b/keyboards/lily58/keymaps/cykedev/keymap.c | |||
@@ -114,8 +114,8 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
114 | 114 | ||
115 | const char *read_logo(void); | 115 | const char *read_logo(void); |
116 | 116 | ||
117 | void oled_task_user(void) { | 117 | bool oled_task_user(void) { |
118 | oled_write_ln(read_logo(), false); | 118 | oled_write_ln(read_logo(), false); |
119 | return false; | ||
119 | } | 120 | } |
120 | #endif // OLED_ENABLE | 121 | #endif // OLED_ENABLE |
121 | |||
diff --git a/keyboards/lily58/keymaps/datadavd/keymap.c b/keyboards/lily58/keymaps/datadavd/keymap.c index 15bcce10b..0485cd19a 100644 --- a/keyboards/lily58/keymaps/datadavd/keymap.c +++ b/keyboards/lily58/keymaps/datadavd/keymap.c | |||
@@ -219,12 +219,13 @@ static void render_lfc_logo(void) { | |||
219 | oled_write_raw_P(my_lfc_logo, sizeof(my_lfc_logo)); | 219 | oled_write_raw_P(my_lfc_logo, sizeof(my_lfc_logo)); |
220 | } | 220 | } |
221 | 221 | ||
222 | void oled_task_user(void) { | 222 | bool oled_task_user(void) { |
223 | if (is_keyboard_master()) { | 223 | if (is_keyboard_master()) { |
224 | render_logo(); | 224 | render_logo(); |
225 | } else { | 225 | } else { |
226 | render_lfc_logo(); | 226 | render_lfc_logo(); |
227 | } | 227 | } |
228 | return false; | ||
228 | } | 229 | } |
229 | #endif // OLED_ENABLE | 230 | #endif // OLED_ENABLE |
230 | 231 | ||
@@ -263,4 +264,3 @@ const char *read_layer_state(void) { | |||
263 | 264 | ||
264 | return layer_state_str; | 265 | return layer_state_str; |
265 | } | 266 | } |
266 | |||
diff --git a/keyboards/lily58/keymaps/default/keymap.c b/keyboards/lily58/keymaps/default/keymap.c index 1b5b7c862..5010c6697 100644 --- a/keyboards/lily58/keymaps/default/keymap.c +++ b/keyboards/lily58/keymaps/default/keymap.c | |||
@@ -122,7 +122,7 @@ const char *read_keylogs(void); | |||
122 | // void set_timelog(void); | 122 | // void set_timelog(void); |
123 | // const char *read_timelog(void); | 123 | // const char *read_timelog(void); |
124 | 124 | ||
125 | void oled_task_user(void) { | 125 | bool oled_task_user(void) { |
126 | if (is_keyboard_master()) { | 126 | if (is_keyboard_master()) { |
127 | // If you want to change the display of OLED, you need to change here | 127 | // If you want to change the display of OLED, you need to change here |
128 | oled_write_ln(read_layer_state(), false); | 128 | oled_write_ln(read_layer_state(), false); |
@@ -134,6 +134,7 @@ void oled_task_user(void) { | |||
134 | } else { | 134 | } else { |
135 | oled_write(read_logo(), false); | 135 | oled_write(read_logo(), false); |
136 | } | 136 | } |
137 | return false; | ||
137 | } | 138 | } |
138 | #endif // OLED_ENABLE | 139 | #endif // OLED_ENABLE |
139 | 140 | ||
diff --git a/keyboards/lily58/keymaps/domnantas/keymap.c b/keyboards/lily58/keymaps/domnantas/keymap.c index f1b2b2dcd..ef2a89c47 100644 --- a/keyboards/lily58/keymaps/domnantas/keymap.c +++ b/keyboards/lily58/keymaps/domnantas/keymap.c | |||
@@ -1,18 +1,18 @@ | |||
1 | /* Copyright 2020 Domantas Petrauskas | 1 | /* Copyright 2020 Domantas Petrauskas |
2 | * | 2 | * |
3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
5 | * the Free Software Foundation, either version 2 of the License, or | 5 | * the Free Software Foundation, either version 2 of the License, or |
6 | * (at your option) any later version. | 6 | * (at your option) any later version. |
7 | * | 7 | * |
8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
12 | * | 12 | * |
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include QMK_KEYBOARD_H | 17 | #include QMK_KEYBOARD_H |
18 | #include <stdio.h> | 18 | #include <stdio.h> |
@@ -275,10 +275,11 @@ static void render_status(void) { | |||
275 | oled_write_ln_P(PSTR("caps"), led_state.caps_lock); | 275 | oled_write_ln_P(PSTR("caps"), led_state.caps_lock); |
276 | } | 276 | } |
277 | 277 | ||
278 | void oled_task_user(void) { | 278 | bool oled_task_user(void) { |
279 | if (is_keyboard_left()) { | 279 | if (is_keyboard_left()) { |
280 | render_status(); | 280 | render_status(); |
281 | } else { | 281 | } else { |
282 | render_bongo_cat(); | 282 | render_bongo_cat(); |
283 | } | 283 | } |
284 | return false; | ||
284 | } | 285 | } |
diff --git a/keyboards/lily58/keymaps/drasbeck/keymap.c b/keyboards/lily58/keymaps/drasbeck/keymap.c index 6e22f0431..56bed4d7a 100644 --- a/keyboards/lily58/keymaps/drasbeck/keymap.c +++ b/keyboards/lily58/keymaps/drasbeck/keymap.c | |||
@@ -92,7 +92,7 @@ void set_keylog(uint16_t keycode, keyrecord_t *record); | |||
92 | // void set_timelog(void); | 92 | // void set_timelog(void); |
93 | // const char *read_timelog(void); | 93 | // const char *read_timelog(void); |
94 | 94 | ||
95 | void oled_task_user(void) { | 95 | bool oled_task_user(void) { |
96 | if (is_keyboard_master()) { | 96 | if (is_keyboard_master()) { |
97 | // If you want to change the display of OLED, you need to change here | 97 | // If you want to change the display of OLED, you need to change here |
98 | oled_write_ln(read_layer_state(), false); | 98 | oled_write_ln(read_layer_state(), false); |
@@ -104,6 +104,7 @@ void oled_task_user(void) { | |||
104 | } else { | 104 | } else { |
105 | oled_write(read_logo(), false); | 105 | oled_write(read_logo(), false); |
106 | } | 106 | } |
107 | return false; | ||
107 | } | 108 | } |
108 | #endif // OLED_ENABLE | 109 | #endif // OLED_ENABLE |
109 | 110 | ||
diff --git a/keyboards/lily58/keymaps/lily58l/keymap.c b/keyboards/lily58/keymaps/lily58l/keymap.c index 3db5f4ac6..10794b869 100644 --- a/keyboards/lily58/keymaps/lily58l/keymap.c +++ b/keyboards/lily58/keymaps/lily58l/keymap.c | |||
@@ -271,13 +271,14 @@ void render_status_main(void) { | |||
271 | render_keylogger_status(); | 271 | render_keylogger_status(); |
272 | } | 272 | } |
273 | 273 | ||
274 | void oled_task_user(void) { | 274 | bool oled_task_user(void) { |
275 | update_log(); | 275 | update_log(); |
276 | if (is_keyboard_master()) { | 276 | if (is_keyboard_master()) { |
277 | render_status_main(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 277 | render_status_main(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
278 | } else { | 278 | } else { |
279 | render_lily58_logo(); | 279 | render_lily58_logo(); |
280 | } | 280 | } |
281 | return false; | ||
281 | } | 282 | } |
282 | 283 | ||
283 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 284 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
diff --git a/keyboards/lily58/keymaps/mikefightsbears/keymap.c b/keyboards/lily58/keymaps/mikefightsbears/keymap.c index 303e7b7d5..2b9855f19 100644 --- a/keyboards/lily58/keymaps/mikefightsbears/keymap.c +++ b/keyboards/lily58/keymaps/mikefightsbears/keymap.c | |||
@@ -156,7 +156,7 @@ const char *read_keylogs(void); | |||
156 | // void set_timelog(void); | 156 | // void set_timelog(void); |
157 | // const char *read_timelog(void); | 157 | // const char *read_timelog(void); |
158 | 158 | ||
159 | void oled_task_user(void) { | 159 | bool oled_task_user(void) { |
160 | if (is_keyboard_master()) { | 160 | if (is_keyboard_master()) { |
161 | // If you want to change the display of OLED, you need to change here | 161 | // If you want to change the display of OLED, you need to change here |
162 | oled_write_ln(read_layer_state(), false); | 162 | oled_write_ln(read_layer_state(), false); |
@@ -168,6 +168,7 @@ void oled_task_user(void) { | |||
168 | } else { | 168 | } else { |
169 | oled_write(read_logo(), false); | 169 | oled_write(read_logo(), false); |
170 | } | 170 | } |
171 | return false; | ||
171 | } | 172 | } |
172 | #endif // OLED_ENABLE | 173 | #endif // OLED_ENABLE |
173 | 174 | ||
@@ -211,4 +212,3 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
211 | } | 212 | } |
212 | return true; | 213 | return true; |
213 | } | 214 | } |
214 | |||
diff --git a/keyboards/lily58/keymaps/muuko/keymap.c b/keyboards/lily58/keymaps/muuko/keymap.c index 7ec273743..c984202b9 100644 --- a/keyboards/lily58/keymaps/muuko/keymap.c +++ b/keyboards/lily58/keymaps/muuko/keymap.c | |||
@@ -174,11 +174,12 @@ static void render_anim(void) { | |||
174 | } | 174 | } |
175 | } | 175 | } |
176 | 176 | ||
177 | void oled_task_user(void) { | 177 | bool oled_task_user(void) { |
178 | if (is_keyboard_master()) { | 178 | if (is_keyboard_master()) { |
179 | render_status(); | 179 | render_status(); |
180 | } else { | 180 | } else { |
181 | render_anim(); | 181 | render_anim(); |
182 | } | 182 | } |
183 | return false; | ||
183 | } | 184 | } |
184 | #endif | 185 | #endif |
diff --git a/keyboards/lily58/keymaps/narze/keymap.c b/keyboards/lily58/keymaps/narze/keymap.c index dfb51ae50..7438e7275 100644 --- a/keyboards/lily58/keymaps/narze/keymap.c +++ b/keyboards/lily58/keymaps/narze/keymap.c | |||
@@ -299,7 +299,7 @@ const char *read_timelog(void); | |||
299 | 299 | ||
300 | char encoder_debug[24]; | 300 | char encoder_debug[24]; |
301 | 301 | ||
302 | void oled_task_user(void) { | 302 | bool oled_task_user(void) { |
303 | // Host Keyboard Layer Status | 303 | // Host Keyboard Layer Status |
304 | if (is_keyboard_master()) { | 304 | if (is_keyboard_master()) { |
305 | // If you want to change the display of OLED, you need to change here | 305 | // If you want to change the display of OLED, you need to change here |
@@ -313,6 +313,7 @@ void oled_task_user(void) { | |||
313 | oled_write(read_logo(), false); | 313 | oled_write(read_logo(), false); |
314 | // oled_write_ln(encoder_debug, false); | 314 | // oled_write_ln(encoder_debug, false); |
315 | } | 315 | } |
316 | return false; | ||
316 | } | 317 | } |
317 | 318 | ||
318 | #endif //OLED_ENABLE | 319 | #endif //OLED_ENABLE |
diff --git a/keyboards/lily58/keymaps/via/keymap.c b/keyboards/lily58/keymaps/via/keymap.c index 5cc5dc1e5..4cae26733 100644 --- a/keyboards/lily58/keymaps/via/keymap.c +++ b/keyboards/lily58/keymaps/via/keymap.c | |||
@@ -186,7 +186,7 @@ const char *read_keylogs(void) { | |||
186 | } | 186 | } |
187 | //new | 187 | //new |
188 | 188 | ||
189 | void oled_task_user(void) { | 189 | bool oled_task_user(void) { |
190 | if (is_keyboard_master()) { | 190 | if (is_keyboard_master()) { |
191 | // Host Keyboard Layer Status | 191 | // Host Keyboard Layer Status |
192 | oled_write_P(PSTR("Layer: "), false); | 192 | oled_write_P(PSTR("Layer: "), false); |
@@ -214,6 +214,7 @@ void oled_task_user(void) { | |||
214 | } else { | 214 | } else { |
215 | render_logo(); | 215 | render_logo(); |
216 | } | 216 | } |
217 | return false; | ||
217 | } | 218 | } |
218 | #endif // OLED_ENABLE | 219 | #endif // OLED_ENABLE |
219 | 220 | ||
diff --git a/keyboards/lily58/keymaps/yshrsmz/keymap.c b/keyboards/lily58/keymaps/yshrsmz/keymap.c index da840e585..6b3166323 100644 --- a/keyboards/lily58/keymaps/yshrsmz/keymap.c +++ b/keyboards/lily58/keymaps/yshrsmz/keymap.c | |||
@@ -158,7 +158,7 @@ const char *read_keylogs(void); | |||
158 | // void set_timelog(void); | 158 | // void set_timelog(void); |
159 | // const char *read_timelog(void); | 159 | // const char *read_timelog(void); |
160 | 160 | ||
161 | void oled_task_user(void) { | 161 | bool oled_task_user(void) { |
162 | if (is_keyboard_master()) { | 162 | if (is_keyboard_master()) { |
163 | // If you want to change the display of OLED, you need to change here | 163 | // If you want to change the display of OLED, you need to change here |
164 | oled_write_ln(read_layer_state(), false); | 164 | oled_write_ln(read_layer_state(), false); |
@@ -170,6 +170,7 @@ void oled_task_user(void) { | |||
170 | } else { | 170 | } else { |
171 | oled_write(read_logo(), false); | 171 | oled_write(read_logo(), false); |
172 | } | 172 | } |
173 | return false; | ||
173 | } | 174 | } |
174 | #endif // OLED_ENABLE | 175 | #endif // OLED_ENABLE |
175 | 176 | ||
diff --git a/keyboards/lily58/keymaps/yuchi/keymap.c b/keyboards/lily58/keymaps/yuchi/keymap.c index 02279bb8a..2cab439c3 100644 --- a/keyboards/lily58/keymaps/yuchi/keymap.c +++ b/keyboards/lily58/keymaps/yuchi/keymap.c | |||
@@ -140,7 +140,7 @@ const char *read_keylogs(void); | |||
140 | // void set_timelog(void); | 140 | // void set_timelog(void); |
141 | // const char *read_timelog(void); | 141 | // const char *read_timelog(void); |
142 | 142 | ||
143 | void oled_task_user(void) { | 143 | bool oled_task_user(void) { |
144 | if (is_keyboard_master()) { | 144 | if (is_keyboard_master()) { |
145 | // If you want to change the display of OLED, you need to change here | 145 | // If you want to change the display of OLED, you need to change here |
146 | oled_write_ln(read_layer_state(), false); | 146 | oled_write_ln(read_layer_state(), false); |
@@ -152,6 +152,7 @@ void oled_task_user(void) { | |||
152 | } else { | 152 | } else { |
153 | oled_write(read_logo(), false); | 153 | oled_write(read_logo(), false); |
154 | } | 154 | } |
155 | return false; | ||
155 | } | 156 | } |
156 | #endif // OLED_ENABLE | 157 | #endif // OLED_ENABLE |
157 | 158 | ||
diff --git a/keyboards/lyra/lyra.c b/keyboards/lyra/lyra.c index 19f6e4464..f479cbfd7 100644 --- a/keyboards/lyra/lyra.c +++ b/keyboards/lyra/lyra.c | |||
@@ -1,31 +1,34 @@ | |||
1 | /* Copyright 2021 Domanic Calleja | 1 | /* Copyright 2021 Domanic Calleja |
2 | * | 2 | * |
3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
5 | * the Free Software Foundation, either version 2 of the License, or | 5 | * the Free Software Foundation, either version 2 of the License, or |
6 | * (at your option) any later version. | 6 | * (at your option) any later version. |
7 | * | 7 | * |
8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
12 | * | 12 | * |
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #include "lyra.h" | 16 | #include "lyra.h" |
17 | 17 | ||
18 | #ifdef OLED_DRIVER_ENABLE | 18 | #ifdef OLED_DRIVER_ENABLE |
19 | 19 | ||
20 | // 'lyralogooled', 32x128px | 20 | // 'lyralogooled', 32x128px |
21 | __attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 21 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
22 | if (is_keyboard_master()) { | 22 | if (is_keyboard_master()) { |
23 | return OLED_ROTATION_270; | 23 | return OLED_ROTATION_270; |
24 | } | 24 | } |
25 | return rotation; | 25 | return rotation; |
26 | } | 26 | } |
27 | 27 | ||
28 | __attribute__((weak)) void oled_task_user(void) { | 28 | bool oled_task_kb(void) { |
29 | if (!oled_task_user()) { | ||
30 | return false; | ||
31 | } | ||
29 | if (is_keyboard_master()) { | 32 | if (is_keyboard_master()) { |
30 | oled_write_P(PSTR(" "), false); | 33 | oled_write_P(PSTR(" "), false); |
31 | # ifdef WPM_ENABLE | 34 | # ifdef WPM_ENABLE |
@@ -50,40 +53,41 @@ __attribute__((weak)) void oled_task_user(void) { | |||
50 | oled_write_P(PSTR("Dom C"), false); | 53 | oled_write_P(PSTR("Dom C"), false); |
51 | } else { | 54 | } else { |
52 | static const char PROGMEM QMK_logo[] = { | 55 | static const char PROGMEM QMK_logo[] = { |
53 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xe0, 0x78, 0x18, 0x0c, 0x04, 0x06, 0x02, | 56 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xe0, 0x78, 0x18, 0x0c, 0x04, 0x06, 0x02, |
54 | 0x02, 0x82, 0xc0, 0xf0, 0x38, 0x8c, 0xf2, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 57 | 0x02, 0x82, 0xc0, 0xf0, 0x38, 0x8c, 0xf2, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
55 | 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 58 | 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
56 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0xc0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 59 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0xc0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
57 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0x40, 0x40, 0x40, 0xc0, 0x80, | 60 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0x40, 0x40, 0x40, 0xc0, 0x80, |
58 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 61 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
59 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 62 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
60 | 0x00, 0x00, 0x00, 0x80, 0x40, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 63 | 0x00, 0x00, 0x00, 0x80, 0x40, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
61 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x1f, 0x18, 0x30, 0x20, 0xa0, 0xe0, 0xf8, | 64 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x1f, 0x18, 0x30, 0x20, 0xa0, 0xe0, 0xf8, |
62 | 0x3e, 0x1f, 0x13, 0x0c, 0x06, 0xc3, 0xf0, 0x60, 0x00, 0x80, 0xf0, 0xe0, 0x00, 0x38, 0xfe, 0x67, | 65 | 0x3e, 0x1f, 0x13, 0x0c, 0x06, 0xc3, 0xf0, 0x60, 0x00, 0x80, 0xf0, 0xe0, 0x00, 0x38, 0xfe, 0x67, |
63 | 0x7b, 0xa5, 0xf3, 0xf0, 0x70, 0x00, 0x00, 0x80, 0xc0, 0xc0, 0xe0, 0x70, 0x30, 0x20, 0x00, 0x00, | 66 | 0x7b, 0xa5, 0xf3, 0xf0, 0x70, 0x00, 0x00, 0x80, 0xc0, 0xc0, 0xe0, 0x70, 0x30, 0x20, 0x00, 0x00, |
64 | 0x00, 0x80, 0x00, 0x00, 0x00, 0x7f, 0xc0, 0xdd, 0xdd, 0xdd, 0xe3, 0x7e, 0x3c, 0x3e, 0x61, 0xdf, | 67 | 0x00, 0x80, 0x00, 0x00, 0x00, 0x7f, 0xc0, 0xdd, 0xdd, 0xdd, 0xe3, 0x7e, 0x3c, 0x3e, 0x61, 0xdf, |
65 | 0xde, 0xde, 0x01, 0xff, 0xfe, 0x00, 0x80, 0x80, 0x80, 0xff, 0xc0, 0xdf, 0xdf, 0xdf, 0xe0, 0xff, | 68 | 0xde, 0xde, 0x01, 0xff, 0xfe, 0x00, 0x80, 0x80, 0x80, 0xff, 0xc0, 0xdf, 0xdf, 0xdf, 0xe0, 0xff, |
66 | 0x7f, 0x3c, 0x62, 0xdd, 0xdd, 0xdd, 0xe3, 0x7e, 0x3c, 0xfe, 0xc1, 0xfd, 0x7d, 0xc3, 0xfd, 0x7d, | 69 | 0x7f, 0x3c, 0x62, 0xdd, 0xdd, 0xdd, 0xe3, 0x7e, 0x3c, 0xfe, 0xc1, 0xfd, 0x7d, 0xc3, 0xfd, 0x7d, |
67 | 0xc3, 0xfe, 0xfc, 0x30, 0xea, 0xd5, 0xd5, 0xd5, 0xc3, 0xff, 0xfe, 0x7e, 0xc1, 0xfd, 0x7d, 0x7d, | 70 | 0xc3, 0xfe, 0xfc, 0x30, 0xea, 0xd5, 0xd5, 0xd5, 0xc3, 0xff, 0xfe, 0x7e, 0xc1, 0xfd, 0x7d, 0x7d, |
68 | 0xc3, 0xfe, 0xfc, 0x3f, 0xe1, 0xff, 0xff, 0x3c, 0x62, 0xdd, 0xdd, 0xdd, 0xf7, 0xe6, 0x00, 0x00, | 71 | 0xc3, 0xfe, 0xfc, 0x3f, 0xe1, 0xff, 0xff, 0x3c, 0x62, 0xdd, 0xdd, 0xdd, 0xf7, 0xe6, 0x00, 0x00, |
69 | 0x00, 0x78, 0xc4, 0xc2, 0x82, 0x82, 0x82, 0x82, 0xc2, 0xe4, 0x74, 0x7c, 0x3f, 0x1f, 0x31, 0x60, | 72 | 0x00, 0x78, 0xc4, 0xc2, 0x82, 0x82, 0x82, 0x82, 0xc2, 0xe4, 0x74, 0x7c, 0x3f, 0x1f, 0x31, 0x60, |
70 | 0xe0, 0xc0, 0x80, 0x9c, 0xbf, 0xe7, 0xf1, 0x78, 0x3e, 0x1f, 0x0b, 0x04, 0x02, 0x01, 0x00, 0x1c, | 73 | 0xe0, 0xc0, 0x80, 0x9c, 0xbf, 0xe7, 0xf1, 0x78, 0x3e, 0x1f, 0x0b, 0x04, 0x02, 0x01, 0x00, 0x1c, |
71 | 0x3e, 0x2f, 0x13, 0x10, 0x0c, 0x1e, 0x3f, 0x2f, 0x13, 0x09, 0x1c, 0x3e, 0x2f, 0x10, 0x08, 0x06, | 74 | 0x3e, 0x2f, 0x13, 0x10, 0x0c, 0x1e, 0x3f, 0x2f, 0x13, 0x09, 0x1c, 0x3e, 0x2f, 0x10, 0x08, 0x06, |
72 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x06, | 75 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x06, |
73 | 0x06, 0x06, 0x07, 0x03, 0x7f, 0xc1, 0xbe, 0xbe, 0xbe, 0xa6, 0xe7, 0xc7, 0x60, 0xd4, 0xaa, 0xaa, | 76 | 0x06, 0x06, 0x07, 0x03, 0x7f, 0xc1, 0xbe, 0xbe, 0xbe, 0xa6, 0xe7, 0xc7, 0x60, 0xd4, 0xaa, 0xaa, |
74 | 0xaa, 0x86, 0xfe, 0xfc, 0x7f, 0xc0, 0xff, 0xff, 0x7f, 0xc0, 0xff, 0xff, 0xc4, 0xaa, 0xaa, 0xaa, | 77 | 0xaa, 0x86, 0xfe, 0xfc, 0x7f, 0xc0, 0xff, 0xff, 0x7f, 0xc0, 0xff, 0xff, 0xc4, 0xaa, 0xaa, 0xaa, |
75 | 0xa6, 0xfc, 0xf8, 0xff, 0x02, 0xff, 0xff, 0x60, 0xd4, 0xaa, 0xaa, 0xaa, 0x86, 0xfe, 0xfc, 0x00, | 78 | 0xa6, 0xfc, 0xf8, 0xff, 0x02, 0xff, 0xff, 0x60, 0xd4, 0xaa, 0xaa, 0xaa, 0x86, 0xfe, 0xfc, 0x00, |
76 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 79 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
77 | 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x28, 0x24, | 80 | 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x28, 0x24, |
78 | 0x32, 0x1b, 0x1f, 0x0f, 0x0f, 0x1f, 0x1f, 0x3c, 0x38, 0x38, 0x78, 0x70, 0x70, 0x70, 0x30, 0x38, | 81 | 0x32, 0x1b, 0x1f, 0x0f, 0x0f, 0x1f, 0x1f, 0x3c, 0x38, 0x38, 0x78, 0x70, 0x70, 0x70, 0x30, 0x38, |
79 | 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 82 | 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
80 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 83 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
81 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x01, 0x01, | 84 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x01, 0x01, |
82 | 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, | 85 | 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, |
83 | 0x01, 0x01, 0x07, 0x0d, 0x0e, 0x07, 0x03, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, | 86 | 0x01, 0x01, 0x07, 0x0d, 0x0e, 0x07, 0x03, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, |
84 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | 87 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 |
85 | }; | 88 | }; |
86 | oled_write_raw_P(QMK_logo, sizeof(QMK_logo)); | 89 | oled_write_raw_P(QMK_logo, sizeof(QMK_logo)); |
87 | } | 90 | } |
91 | return false; | ||
88 | } | 92 | } |
89 | #endif | 93 | #endif |
diff --git a/keyboards/marksard/rhymestone/keymaps/default/keymap.c b/keyboards/marksard/rhymestone/keymaps/default/keymap.c index f25955c91..0bc981977 100644 --- a/keyboards/marksard/rhymestone/keymaps/default/keymap.c +++ b/keyboards/marksard/rhymestone/keymaps/default/keymap.c | |||
@@ -158,13 +158,14 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
158 | return rotation; | 158 | return rotation; |
159 | } | 159 | } |
160 | 160 | ||
161 | void oled_task_user(void) { | 161 | bool oled_task_user(void) { |
162 | 162 | ||
163 | if (is_keyboard_master()) { | 163 | if (is_keyboard_master()) { |
164 | render_status(); | 164 | render_status(); |
165 | } else { | 165 | } else { |
166 | render_logo(); | 166 | render_logo(); |
167 | } | 167 | } |
168 | return false; | ||
168 | } | 169 | } |
169 | 170 | ||
170 | #else | 171 | #else |
diff --git a/keyboards/mechllama/g35/keymaps/default/keymap.c b/keyboards/mechllama/g35/keymaps/default/keymap.c index 814f6fdcd..f02cba0b5 100644 --- a/keyboards/mechllama/g35/keymaps/default/keymap.c +++ b/keyboards/mechllama/g35/keymaps/default/keymap.c | |||
@@ -66,7 +66,8 @@ const char* get_layer_name(uint8_t layer) { | |||
66 | } | 66 | } |
67 | } | 67 | } |
68 | 68 | ||
69 | void oled_task_user(void) { | 69 | bool oled_task_user(void) { |
70 | oled_write_ln_P(get_layer_name(biton32(layer_state)), false); | 70 | oled_write_ln_P(get_layer_name(biton32(layer_state)), false); |
71 | return false; | ||
71 | } | 72 | } |
72 | #endif | 73 | #endif |
diff --git a/keyboards/mechwild/mercutio/keymaps/bongocat/keymap.c b/keyboards/mechwild/mercutio/keymaps/bongocat/keymap.c index b09489876..6062b8c73 100644 --- a/keyboards/mechwild/mercutio/keymaps/bongocat/keymap.c +++ b/keyboards/mechwild/mercutio/keymaps/bongocat/keymap.c | |||
@@ -187,12 +187,13 @@ static void render_anim(void) { | |||
187 | } | 187 | } |
188 | } | 188 | } |
189 | 189 | ||
190 | void oled_task_user(void) { | 190 | bool oled_task_user(void) { |
191 | render_anim(); | 191 | render_anim(); |
192 | oled_set_cursor(0,4); | 192 | oled_set_cursor(0,4); |
193 | sprintf(wpm_str, "WPM: %03d", get_current_wpm()); | 193 | sprintf(wpm_str, "WPM: %03d", get_current_wpm()); |
194 | oled_write(wpm_str, false); | 194 | oled_write(wpm_str, false); |
195 | 195 | ||
196 | return false; | ||
196 | } | 197 | } |
197 | 198 | ||
198 | #endif | 199 | #endif |
diff --git a/keyboards/mechwild/mercutio/keymaps/default/keymap.c b/keyboards/mechwild/mercutio/keymaps/default/keymap.c index a08150505..8f433292b 100644 --- a/keyboards/mechwild/mercutio/keymaps/default/keymap.c +++ b/keyboards/mechwild/mercutio/keymaps/default/keymap.c | |||
@@ -76,7 +76,8 @@ static void render_name(void) { | |||
76 | oled_write_P(mercutio_name, false); | 76 | oled_write_P(mercutio_name, false); |
77 | } | 77 | } |
78 | 78 | ||
79 | void oled_task_user(void) { | 79 | bool oled_task_user(void) { |
80 | render_name(); | 80 | render_name(); |
81 | return false; | ||
81 | } | 82 | } |
82 | #endif | 83 | #endif |
diff --git a/keyboards/mechwild/mercutio/keymaps/fancy/keymap.c b/keyboards/mechwild/mercutio/keymaps/fancy/keymap.c index cb0a6173f..96457be6d 100755 --- a/keyboards/mechwild/mercutio/keymaps/fancy/keymap.c +++ b/keyboards/mechwild/mercutio/keymaps/fancy/keymap.c | |||
@@ -107,7 +107,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
107 | oled_write_P(logo_4, false); | 107 | oled_write_P(logo_4, false); |
108 | } | 108 | } |
109 | 109 | ||
110 | void oled_task_user(void) { | 110 | bool oled_task_user(void) { |
111 | 111 | ||
112 | if ( IS_HOST_LED_OFF(USB_LED_NUM_LOCK) && IS_HOST_LED_OFF(USB_LED_CAPS_LOCK) && selected_layer == 0 && get_highest_layer(layer_state) == 0 ) { | 112 | if ( IS_HOST_LED_OFF(USB_LED_NUM_LOCK) && IS_HOST_LED_OFF(USB_LED_CAPS_LOCK) && selected_layer == 0 && get_highest_layer(layer_state) == 0 ) { |
113 | render_name(); | 113 | render_name(); |
@@ -164,5 +164,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
164 | oled_write_P(led_state.num_lock ? PSTR("NLCK ") : PSTR(" "), false); | 164 | oled_write_P(led_state.num_lock ? PSTR("NLCK ") : PSTR(" "), false); |
165 | oled_write_P(led_state.caps_lock ? PSTR("CAPS ") : PSTR(" "), false); | 165 | oled_write_P(led_state.caps_lock ? PSTR("CAPS ") : PSTR(" "), false); |
166 | } | 166 | } |
167 | return false; | ||
167 | } | 168 | } |
168 | #endif | 169 | #endif |
diff --git a/keyboards/mechwild/mercutio/keymaps/jonavin/keymap.c b/keyboards/mechwild/mercutio/keymaps/jonavin/keymap.c index 22d26db3c..869a9f73a 100755 --- a/keyboards/mechwild/mercutio/keymaps/jonavin/keymap.c +++ b/keyboards/mechwild/mercutio/keymaps/jonavin/keymap.c | |||
@@ -188,7 +188,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | |||
188 | oled_write_P(logo_4, false); | 188 | oled_write_P(logo_4, false); |
189 | } | 189 | } |
190 | 190 | ||
191 | void oled_task_user(void) { | 191 | bool oled_task_user(void) { |
192 | 192 | ||
193 | if ( IS_HOST_LED_OFF(USB_LED_NUM_LOCK) && IS_HOST_LED_OFF(USB_LED_CAPS_LOCK) && get_selected_layer() == 0 && get_highest_layer(layer_state) == 0 ) { | 193 | if ( IS_HOST_LED_OFF(USB_LED_NUM_LOCK) && IS_HOST_LED_OFF(USB_LED_CAPS_LOCK) && get_selected_layer() == 0 && get_highest_layer(layer_state) == 0 ) { |
194 | render_name(); | 194 | render_name(); |
@@ -263,6 +263,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | |||
263 | 263 | ||
264 | } | 264 | } |
265 | 265 | ||
266 | return false; | ||
266 | } | 267 | } |
267 | 268 | ||
268 | void suspend_power_down_user(void) { // shutdown oled when powered down to prevent OLED from showing Mercutio all the time | 269 | void suspend_power_down_user(void) { // shutdown oled when powered down to prevent OLED from showing Mercutio all the time |
diff --git a/keyboards/mechwild/mercutio/keymaps/via/keymap.c b/keyboards/mechwild/mercutio/keymaps/via/keymap.c index a08150505..8f433292b 100755 --- a/keyboards/mechwild/mercutio/keymaps/via/keymap.c +++ b/keyboards/mechwild/mercutio/keymaps/via/keymap.c | |||
@@ -76,7 +76,8 @@ static void render_name(void) { | |||
76 | oled_write_P(mercutio_name, false); | 76 | oled_write_P(mercutio_name, false); |
77 | } | 77 | } |
78 | 78 | ||
79 | void oled_task_user(void) { | 79 | bool oled_task_user(void) { |
80 | render_name(); | 80 | render_name(); |
81 | return false; | ||
81 | } | 82 | } |
82 | #endif | 83 | #endif |
diff --git a/keyboards/mechwild/murphpad/keymaps/default/keymap.c b/keyboards/mechwild/murphpad/keymaps/default/keymap.c index a30bf6bfa..fe46e8ce5 100644 --- a/keyboards/mechwild/murphpad/keymaps/default/keymap.c +++ b/keyboards/mechwild/murphpad/keymaps/default/keymap.c | |||
@@ -115,7 +115,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) { | |||
115 | oled_write_P(logo_4, false); | 115 | oled_write_P(logo_4, false); |
116 | } | 116 | } |
117 | 117 | ||
118 | void oled_task_user(void) { | 118 | bool oled_task_user(void) { |
119 | render_logo(); | 119 | render_logo(); |
120 | oled_set_cursor(0,6); | 120 | oled_set_cursor(0,6); |
121 | 121 | ||
@@ -143,5 +143,6 @@ bool encoder_update_user(uint8_t index, bool clockwise) { | |||
143 | oled_write_ln_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 143 | oled_write_ln_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
144 | oled_write_ln_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 144 | oled_write_ln_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
145 | oled_write_ln_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 145 | oled_write_ln_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
146 | return false; | ||
146 | } | 147 | } |
147 | #endif | 148 | #endif |
diff --git a/keyboards/mechwild/murphpad/keymaps/jonavin/keymap.c b/keyboards/mechwild/murphpad/keymaps/jonavin/keymap.c index dc03e334b..043eeb992 100644 --- a/keyboards/mechwild/murphpad/keymaps/jonavin/keymap.c +++ b/keyboards/mechwild/murphpad/keymaps/jonavin/keymap.c | |||
@@ -296,7 +296,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | |||
296 | } | 296 | } |
297 | 297 | ||
298 | #ifdef LANDSCAPE_MODE | 298 | #ifdef LANDSCAPE_MODE |
299 | void oled_task_user(void) { | 299 | bool oled_task_user(void) { |
300 | 300 | ||
301 | render_logo(); | 301 | render_logo(); |
302 | oled_set_cursor(8,2); | 302 | oled_set_cursor(8,2); |
@@ -359,6 +359,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | |||
359 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 359 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
360 | oled_write_P(led_state.caps_lock ? PSTR("CAPS ") : PSTR(" "), false); | 360 | oled_write_P(led_state.caps_lock ? PSTR("CAPS ") : PSTR(" "), false); |
361 | oled_write_P(led_state.scroll_lock ? PSTR("SCR") : PSTR(" "), false); | 361 | oled_write_P(led_state.scroll_lock ? PSTR("SCR") : PSTR(" "), false); |
362 | return false; | ||
362 | } | 363 | } |
363 | #endif // LANDSCAPE_MODE | 364 | #endif // LANDSCAPE_MODE |
364 | 365 | ||
@@ -368,7 +369,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | |||
368 | return OLED_ROTATION_270; // flips the display 270 degrees | 369 | return OLED_ROTATION_270; // flips the display 270 degrees |
369 | } | 370 | } |
370 | 371 | ||
371 | void oled_task_user(void) { | 372 | bool oled_task_user(void) { |
372 | render_logo(); | 373 | render_logo(); |
373 | oled_set_cursor(0,5); | 374 | oled_set_cursor(0,5); |
374 | 375 | ||
@@ -408,6 +409,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | |||
408 | oled_write_ln_P(led_state.num_lock ? PSTR(" NUM") : PSTR(" "), false); | 409 | oled_write_ln_P(led_state.num_lock ? PSTR(" NUM") : PSTR(" "), false); |
409 | oled_write_ln_P(led_state.caps_lock ? PSTR(" CAP") : PSTR(" "), false); | 410 | oled_write_ln_P(led_state.caps_lock ? PSTR(" CAP") : PSTR(" "), false); |
410 | oled_write_ln_P(led_state.scroll_lock ? PSTR(" SCR") : PSTR(" "), false); | 411 | oled_write_ln_P(led_state.scroll_lock ? PSTR(" SCR") : PSTR(" "), false); |
412 | return false; | ||
411 | } | 413 | } |
412 | #endif // !LANDSCAPE_MODE | 414 | #endif // !LANDSCAPE_MODE |
413 | 415 | ||
diff --git a/keyboards/mechwild/murphpad/keymaps/via/keymap.c b/keyboards/mechwild/murphpad/keymaps/via/keymap.c index 17e4699a9..4f4f6d571 100644 --- a/keyboards/mechwild/murphpad/keymaps/via/keymap.c +++ b/keyboards/mechwild/murphpad/keymaps/via/keymap.c | |||
@@ -113,7 +113,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) { | |||
113 | oled_write_P(logo_4, false); | 113 | oled_write_P(logo_4, false); |
114 | } | 114 | } |
115 | 115 | ||
116 | void oled_task_user(void) { | 116 | bool oled_task_user(void) { |
117 | render_logo(); | 117 | render_logo(); |
118 | oled_set_cursor(0,6); | 118 | oled_set_cursor(0,6); |
119 | 119 | ||
@@ -141,5 +141,6 @@ bool encoder_update_user(uint8_t index, bool clockwise) { | |||
141 | oled_write_ln_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 141 | oled_write_ln_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
142 | oled_write_ln_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 142 | oled_write_ln_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
143 | oled_write_ln_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 143 | oled_write_ln_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
144 | return false; | ||
144 | } | 145 | } |
145 | #endif | 146 | #endif |
diff --git a/keyboards/merge/um70/keymaps/default/keymap.c b/keyboards/merge/um70/keymaps/default/keymap.c index 0a775929d..926f7836a 100644 --- a/keyboards/merge/um70/keymaps/default/keymap.c +++ b/keyboards/merge/um70/keymaps/default/keymap.c | |||
@@ -169,7 +169,7 @@ static void print_status_narrow(void) { | |||
169 | // WPM counter End | 169 | // WPM counter End |
170 | } | 170 | } |
171 | 171 | ||
172 | void oled_task_user(void) { | 172 | bool oled_task_user(void) { |
173 | current_wpm = get_current_wpm(); | 173 | current_wpm = get_current_wpm(); |
174 | if (is_keyboard_master()) { | 174 | if (is_keyboard_master()) { |
175 | print_status_narrow(); | 175 | print_status_narrow(); |
@@ -178,6 +178,7 @@ void oled_task_user(void) { | |||
178 | render_logo(); | 178 | render_logo(); |
179 | //print_status_narrow(); | 179 | //print_status_narrow(); |
180 | } | 180 | } |
181 | return false; | ||
181 | } | 182 | } |
182 | 183 | ||
183 | #endif | 184 | #endif |
diff --git a/keyboards/merge/um70/keymaps/via/keymap.c b/keyboards/merge/um70/keymaps/via/keymap.c index aaf682ffd..f7255eacf 100644 --- a/keyboards/merge/um70/keymaps/via/keymap.c +++ b/keyboards/merge/um70/keymaps/via/keymap.c | |||
@@ -173,7 +173,7 @@ static void print_status_narrow(void) { | |||
173 | // WPM counter End | 173 | // WPM counter End |
174 | } | 174 | } |
175 | 175 | ||
176 | void oled_task_user(void) { | 176 | bool oled_task_user(void) { |
177 | current_wpm = get_current_wpm(); | 177 | current_wpm = get_current_wpm(); |
178 | if (is_keyboard_master()) { | 178 | if (is_keyboard_master()) { |
179 | print_status_narrow(); | 179 | print_status_narrow(); |
@@ -182,6 +182,7 @@ void oled_task_user(void) { | |||
182 | render_logo(); | 182 | render_logo(); |
183 | //print_status_narrow(); | 183 | //print_status_narrow(); |
184 | } | 184 | } |
185 | return false; | ||
185 | } | 186 | } |
186 | 187 | ||
187 | #endif | 188 | #endif |
diff --git a/keyboards/misonoworks/chocolatebar/chocolatebar.c b/keyboards/misonoworks/chocolatebar/chocolatebar.c index 448d95588..dc9a251df 100644 --- a/keyboards/misonoworks/chocolatebar/chocolatebar.c +++ b/keyboards/misonoworks/chocolatebar/chocolatebar.c | |||
@@ -18,11 +18,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
18 | #include "chocolatebar.h" | 18 | #include "chocolatebar.h" |
19 | 19 | ||
20 | #ifdef OLED_ENABLE | 20 | #ifdef OLED_ENABLE |
21 | __attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 21 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
22 | return OLED_ROTATION_270; // flips the display 180 degrees if offhand | 22 | return OLED_ROTATION_270; |
23 | } | 23 | } |
24 | 24 | ||
25 | __attribute__((weak)) void oled_task_user(void) { | 25 | bool oled_task_kb(void) { |
26 | if (!oled_task_user()) { | ||
27 | return false; | ||
28 | } | ||
26 | static const char PROGMEM base_logo[] = {// 'choccy oled base', 32x128px | 29 | static const char PROGMEM base_logo[] = {// 'choccy oled base', 32x128px |
27 | 0xff, 0xff, 0xff, 0xff, 0x7f, 0x3f, 0x1f, 0x0f, 0x8f, 0xff, 0x7f, 0x1f, 0x0f, 0x0f, 0x1f, 0x3f, 0x3f, 0x3f, 0x3f, 0x7f, 0x7f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7c, 0x38, 0x08, 0x04, 0x02, 0x03, 0xe3, 0x98, 0x08, 0x08, 0x0c, 0x00, 0x00, 0x00, 0x0c, 0x0c, 0x9e, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xf8, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0x01, 0x01, 0xff, 0x00, 0x00, 0x00, 0x61, 0x63, 0xf7, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x30, 0x20, 0x20, 0x30, 0x3f, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x3c, 0x30, 0x20, 0x20, 0x30, 0x3f, 0x3e, 0x7e, 0xff, 0xff, 0xff, 0xff, 0xff, | 30 | 0xff, 0xff, 0xff, 0xff, 0x7f, 0x3f, 0x1f, 0x0f, 0x8f, 0xff, 0x7f, 0x1f, 0x0f, 0x0f, 0x1f, 0x3f, 0x3f, 0x3f, 0x3f, 0x7f, 0x7f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7c, 0x38, 0x08, 0x04, 0x02, 0x03, 0xe3, 0x98, 0x08, 0x08, 0x0c, 0x00, 0x00, 0x00, 0x0c, 0x0c, 0x9e, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xf8, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0x01, 0x01, 0xff, 0x00, 0x00, 0x00, 0x61, 0x63, 0xf7, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x30, 0x20, 0x20, 0x30, 0x3f, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x3c, 0x30, 0x20, 0x20, 0x30, 0x3f, 0x3e, 0x7e, 0xff, 0xff, 0xff, 0xff, 0xff, |
28 | 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0xfc, 0xbc, 0x14, 0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x04, 0x04, 0x04, 0x04, 0x14, 0xbc, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x3f, 0x7f, 0x3b, 0x30, 0x00, 0x00, 0x04, 0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x43, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x80, 0x80, 0xc3, 0xc3, 0xc2, 0xc2, 0xc2, 0xc3, 0xc2, 0xc0, 0xc0, 0xc2, 0xc3, 0xc2, 0xc2, 0xc2, 0x42, 0x43, 0xc0, 0x80, 0x80, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xbf, 0xdf, 0xef, 0x67, 0x9b, 0x9d, 0x6e, 0x75, 0xb3, 0xc5, 0xce, 0x57, 0xbb, 0xdc, 0xed, 0xf3, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, | 31 | 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0xfc, 0xbc, 0x14, 0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x04, 0x04, 0x04, 0x04, 0x14, 0xbc, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x3f, 0x7f, 0x3b, 0x30, 0x00, 0x00, 0x04, 0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x43, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x80, 0x80, 0xc3, 0xc3, 0xc2, 0xc2, 0xc2, 0xc3, 0xc2, 0xc0, 0xc0, 0xc2, 0xc3, 0xc2, 0xc2, 0xc2, 0x42, 0x43, 0xc0, 0x80, 0x80, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xbf, 0xdf, 0xef, 0x67, 0x9b, 0x9d, 0x6e, 0x75, 0xb3, 0xc5, 0xce, 0x57, 0xbb, 0xdc, 0xed, 0xf3, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, |
@@ -46,5 +49,6 @@ __attribute__((weak)) void oled_task_user(void) { | |||
46 | default: | 49 | default: |
47 | oled_write_raw_P(base_logo, sizeof(base_logo)); | 50 | oled_write_raw_P(base_logo, sizeof(base_logo)); |
48 | } | 51 | } |
52 | return false; | ||
49 | } | 53 | } |
50 | #endif | 54 | #endif |
diff --git a/keyboards/montsinger/rebound/rev3/keymaps/rossman360/keymap.c b/keyboards/montsinger/rebound/rev3/keymaps/rossman360/keymap.c index 887bffeb8..207f907f6 100644 --- a/keyboards/montsinger/rebound/rev3/keymaps/rossman360/keymap.c +++ b/keyboards/montsinger/rebound/rev3/keymaps/rossman360/keymap.c | |||
@@ -75,7 +75,7 @@ case _BASE: | |||
75 | } | 75 | } |
76 | 76 | ||
77 | #ifdef OLED_ENABLE | 77 | #ifdef OLED_ENABLE |
78 | void oled_task_user(void) { | 78 | bool oled_task_user(void) { |
79 | // Host Keyboard Layer Status | 79 | // Host Keyboard Layer Status |
80 | oled_write_P(PSTR(""), false); | 80 | oled_write_P(PSTR(""), false); |
81 | 81 | ||
@@ -107,6 +107,7 @@ void oled_task_user(void) { | |||
107 | oled_write_P(led_state.caps_lock ? PSTR("CAPS") : PSTR(" "), false); | 107 | oled_write_P(led_state.caps_lock ? PSTR("CAPS") : PSTR(" "), false); |
108 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 108 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
109 | 109 | ||
110 | return false; | ||
110 | } | 111 | } |
111 | 112 | ||
112 | #endif | 113 | #endif |
diff --git a/keyboards/montsinger/rebound/rev4/keymaps/rossman360/keymap.c b/keyboards/montsinger/rebound/rev4/keymaps/rossman360/keymap.c index 1465372ec..d49465eea 100644 --- a/keyboards/montsinger/rebound/rev4/keymaps/rossman360/keymap.c +++ b/keyboards/montsinger/rebound/rev4/keymaps/rossman360/keymap.c | |||
@@ -84,7 +84,7 @@ case _DEL: | |||
84 | } | 84 | } |
85 | 85 | ||
86 | #ifdef OLED_ENABLE | 86 | #ifdef OLED_ENABLE |
87 | void oled_task_user(void) { | 87 | bool oled_task_user(void) { |
88 | // Host Keyboard Layer Status | 88 | // Host Keyboard Layer Status |
89 | oled_write_P(PSTR(""), false); | 89 | oled_write_P(PSTR(""), false); |
90 | 90 | ||
@@ -116,6 +116,7 @@ void oled_task_user(void) { | |||
116 | oled_write_P(led_state.caps_lock ? PSTR("CAPS") : PSTR(" "), false); | 116 | oled_write_P(led_state.caps_lock ? PSTR("CAPS") : PSTR(" "), false); |
117 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 117 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
118 | 118 | ||
119 | return false; | ||
119 | } | 120 | } |
120 | 121 | ||
121 | #endif | 122 | #endif |
diff --git a/keyboards/nullbitsco/nibble/keymaps/oled/keymap.c b/keyboards/nullbitsco/nibble/keymaps/oled/keymap.c index 14f79f5fb..300af7073 100644 --- a/keyboards/nullbitsco/nibble/keymaps/oled/keymap.c +++ b/keyboards/nullbitsco/nibble/keymaps/oled/keymap.c | |||
@@ -83,8 +83,9 @@ static void render_logo(void) { | |||
83 | oled_write_raw_P(nibble_logo, sizeof(nibble_logo)); | 83 | oled_write_raw_P(nibble_logo, sizeof(nibble_logo)); |
84 | } | 84 | } |
85 | 85 | ||
86 | void oled_task_user(void) { | 86 | bool oled_task_user(void) { |
87 | render_logo(); | 87 | render_logo(); |
88 | return false; | ||
88 | } | 89 | } |
89 | #endif | 90 | #endif |
90 | 91 | ||
diff --git a/keyboards/nullbitsco/nibble/keymaps/oled_bongocat/keymap.c b/keyboards/nullbitsco/nibble/keymaps/oled_bongocat/keymap.c index 5c4e31ab6..a4e484f9c 100644 --- a/keyboards/nullbitsco/nibble/keymaps/oled_bongocat/keymap.c +++ b/keyboards/nullbitsco/nibble/keymaps/oled_bongocat/keymap.c | |||
@@ -155,7 +155,7 @@ static void render_anim(void) { | |||
155 | } | 155 | } |
156 | } | 156 | } |
157 | 157 | ||
158 | void oled_task_user(void) { | 158 | bool oled_task_user(void) { |
159 | render_anim(); | 159 | render_anim(); |
160 | oled_set_cursor(0, 14); | 160 | oled_set_cursor(0, 14); |
161 | 161 | ||
@@ -168,6 +168,8 @@ void oled_task_user(void) { | |||
168 | wpm_counter[1] = '0'; | 168 | wpm_counter[1] = '0'; |
169 | wpm_counter[0] = '>'; | 169 | wpm_counter[0] = '>'; |
170 | oled_write_ln(wpm_counter, false); | 170 | oled_write_ln(wpm_counter, false); |
171 | |||
172 | return false; | ||
171 | } | 173 | } |
172 | #endif | 174 | #endif |
173 | 175 | ||
diff --git a/keyboards/nullbitsco/nibble/keymaps/oled_status/keymap.c b/keyboards/nullbitsco/nibble/keymaps/oled_status/keymap.c index 161eeedc3..fa72a7890 100644 --- a/keyboards/nullbitsco/nibble/keymaps/oled_status/keymap.c +++ b/keyboards/nullbitsco/nibble/keymaps/oled_status/keymap.c | |||
@@ -51,11 +51,12 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
51 | return OLED_ROTATION_180; | 51 | return OLED_ROTATION_180; |
52 | } | 52 | } |
53 | 53 | ||
54 | void oled_task_user(void) { | 54 | bool oled_task_user(void) { |
55 | if (timer_elapsed(oled_timer) >= 3000) { | 55 | if (timer_elapsed(oled_timer) >= 3000) { |
56 | set_oled_mode(OLED_MODE_IDLE); | 56 | set_oled_mode(OLED_MODE_IDLE); |
57 | } | 57 | } |
58 | render_frame(); | 58 | render_frame(); |
59 | return false; | ||
59 | } | 60 | } |
60 | #endif | 61 | #endif |
61 | 62 | ||
diff --git a/keyboards/nullbitsco/nibble/keymaps/snailmap/keymap.c b/keyboards/nullbitsco/nibble/keymaps/snailmap/keymap.c index d628a976f..e549f22a8 100644 --- a/keyboards/nullbitsco/nibble/keymaps/snailmap/keymap.c +++ b/keyboards/nullbitsco/nibble/keymaps/snailmap/keymap.c | |||
@@ -106,73 +106,73 @@ static void write_pixel(int x, int y, bool onoff) { | |||
106 | static void render_background(void) { | 106 | static void render_background(void) { |
107 | if (oled_horizontal) { | 107 | if (oled_horizontal) { |
108 | static const char PROGMEM oled_keymap_horizontal[] = { | 108 | static const char PROGMEM oled_keymap_horizontal[] = { |
109 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 109 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
110 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 110 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
111 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, | 111 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, |
112 | 0x84, 0x80, 0x80, 0x80, 0x80, 0x04, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0x80, 0x04, | 112 | 0x84, 0x80, 0x80, 0x80, 0x80, 0x04, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0x80, 0x04, |
113 | 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, | 113 | 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, |
114 | 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, | 114 | 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, |
115 | 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, | 115 | 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, |
116 | 0x80, 0x04, 0x04, 0x04, 0x04, 0x84, 0x84, 0x84, 0x84, 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, | 116 | 0x80, 0x04, 0x04, 0x04, 0x04, 0x84, 0x84, 0x84, 0x84, 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, |
117 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 117 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
118 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 118 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
119 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, | 119 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, |
120 | 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, | 120 | 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, |
121 | 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, | 121 | 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, |
122 | 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, | 122 | 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, |
123 | 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, | 123 | 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, |
124 | 0x00, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, | 124 | 0x00, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, |
125 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 125 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
126 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 126 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
127 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, | 127 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, |
128 | 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, | 128 | 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, |
129 | 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, | 129 | 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, |
130 | 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, | 130 | 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, |
131 | 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, | 131 | 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, |
132 | 0x02, 0x02, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, | 132 | 0x02, 0x02, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, |
133 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 133 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
134 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 134 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
135 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 135 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
136 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 136 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
137 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 137 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
138 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 138 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
139 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 139 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
140 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | 140 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 |
141 | }; | 141 | }; |
142 | oled_write_raw_P(oled_keymap_horizontal, sizeof(oled_keymap_horizontal)); | 142 | oled_write_raw_P(oled_keymap_horizontal, sizeof(oled_keymap_horizontal)); |
143 | } else { | 143 | } else { |
144 | static const char PROGMEM oled_keymap_vertical[] = { | 144 | static const char PROGMEM oled_keymap_vertical[] = { |
145 | 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, | 145 | 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, |
146 | 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 146 | 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
147 | 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x87, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, | 147 | 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x87, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, |
148 | 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 148 | 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
149 | 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, | 149 | 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, |
150 | 0x00, 0x43, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 150 | 0x00, 0x43, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
151 | 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, | 151 | 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, |
152 | 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 152 | 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
153 | 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, | 153 | 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, |
154 | 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 154 | 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
155 | 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, | 155 | 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, |
156 | 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 156 | 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
157 | 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, | 157 | 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, |
158 | 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 158 | 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
159 | 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, | 159 | 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, |
160 | 0x00, 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 160 | 0x00, 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
161 | 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, | 161 | 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, |
162 | 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 162 | 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
163 | 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, | 163 | 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, |
164 | 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 164 | 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
165 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, | 165 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, |
166 | 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 166 | 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
167 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 167 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
168 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 168 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
169 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 169 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
170 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 170 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
171 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 171 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
172 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 172 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
173 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 173 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
174 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 174 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
175 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 175 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
176 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | 176 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 |
177 | }; | 177 | }; |
178 | oled_write_raw_P(oled_keymap_vertical, sizeof(oled_keymap_vertical)); | 178 | oled_write_raw_P(oled_keymap_vertical, sizeof(oled_keymap_vertical)); |
@@ -257,7 +257,7 @@ static void render_keymap(uint8_t key_row, uint8_t key_col, bool onoff) { | |||
257 | int top = keymap_coords[key_row][key_col][1] + keymap_template[1]; | 257 | int top = keymap_coords[key_row][key_col][1] + keymap_template[1]; |
258 | int right = left + length - 1; | 258 | int right = left + length - 1; |
259 | int bottom = top + 4; | 259 | int bottom = top + 4; |
260 | 260 | ||
261 | // Special case 1 - Draw enter key on ISO layout, return | 261 | // Special case 1 - Draw enter key on ISO layout, return |
262 | if ((ansi_layout == false) && (key_row == 2) && (key_col == 14)) { | 262 | if ((ansi_layout == false) && (key_row == 2) && (key_col == 14)) { |
263 | for (int i = 0; i < 10; i++) { | 263 | for (int i = 0; i < 10; i++) { |
@@ -427,7 +427,7 @@ static void render_wpm_graph(int current_wpm) { | |||
427 | } | 427 | } |
428 | 428 | ||
429 | // Call OLED functions | 429 | // Call OLED functions |
430 | void oled_task_user(void) { | 430 | bool oled_task_user(void) { |
431 | // Draw OLED keyboard, prevent redraw | 431 | // Draw OLED keyboard, prevent redraw |
432 | if (first_loop) { | 432 | if (first_loop) { |
433 | render_background(); | 433 | render_background(); |
@@ -456,6 +456,7 @@ void oled_task_user(void) { | |||
456 | render_wpm_graph(current_wpm); | 456 | render_wpm_graph(current_wpm); |
457 | timer = timer_read(); | 457 | timer = timer_read(); |
458 | } | 458 | } |
459 | return false; | ||
459 | } | 460 | } |
460 | #endif | 461 | #endif |
461 | 462 | ||
@@ -463,7 +464,7 @@ void oled_task_user(void) { | |||
463 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 464 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
464 | // Forwards keystrokes from an external input device over UART/TRRS | 465 | // Forwards keystrokes from an external input device over UART/TRRS |
465 | process_record_remote_kb(keycode, record); | 466 | process_record_remote_kb(keycode, record); |
466 | 467 | ||
467 | #ifdef OLED_ENABLE | 468 | #ifdef OLED_ENABLE |
468 | // Toggle pixels surrounding key | 469 | // Toggle pixels surrounding key |
469 | render_keymap(record->event.key.row, record->event.key.col, record->event.pressed); | 470 | render_keymap(record->event.key.row, record->event.key.col, record->event.pressed); |
@@ -472,7 +473,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
472 | return true; | 473 | return true; |
473 | } | 474 | } |
474 | 475 | ||
475 | // Rotary encoder - RGB and OLED settings | 476 | // Rotary encoder - RGB and OLED settings |
476 | void change_RGB(bool clockwise) { | 477 | void change_RGB(bool clockwise) { |
477 | // While on any layer except default: // Rotary = RGB Mode | 478 | // While on any layer except default: // Rotary = RGB Mode |
478 | bool shift = get_mods() & MOD_MASK_SHIFT; // Rotary + Shift = OLED Brightness | 479 | bool shift = get_mods() & MOD_MASK_SHIFT; // Rotary + Shift = OLED Brightness |
@@ -539,4 +540,4 @@ void matrix_init_user(void) { | |||
539 | // Scan and parse keystrokes from remote keyboard, if connected | 540 | // Scan and parse keystrokes from remote keyboard, if connected |
540 | void matrix_scan_user(void) { | 541 | void matrix_scan_user(void) { |
541 | matrix_scan_remote_kb(); | 542 | matrix_scan_remote_kb(); |
542 | } \ No newline at end of file | 543 | } |
diff --git a/keyboards/nullbitsco/scramble/keymaps/oled/keymap.c b/keyboards/nullbitsco/scramble/keymaps/oled/keymap.c index 109da78ad..b1c928225 100644 --- a/keyboards/nullbitsco/scramble/keymaps/oled/keymap.c +++ b/keyboards/nullbitsco/scramble/keymaps/oled/keymap.c | |||
@@ -67,8 +67,9 @@ static void render_logo(void) { | |||
67 | oled_write_raw_P(nullbits_logo, sizeof(nullbits_logo)); | 67 | oled_write_raw_P(nullbits_logo, sizeof(nullbits_logo)); |
68 | } | 68 | } |
69 | 69 | ||
70 | void oled_task_user(void) { | 70 | bool oled_task_user(void) { |
71 | render_logo(); | 71 | render_logo(); |
72 | return false; | ||
72 | } | 73 | } |
73 | #endif | 74 | #endif |
74 | 75 | ||
diff --git a/keyboards/palette1202/keymaps/default/keymap.c b/keyboards/palette1202/keymaps/default/keymap.c index fb28dedbe..a1faa8558 100644 --- a/keyboards/palette1202/keymaps/default/keymap.c +++ b/keyboards/palette1202/keymaps/default/keymap.c | |||
@@ -274,7 +274,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
274 | 274 | ||
275 | // OLED Display | 275 | // OLED Display |
276 | #ifdef OLED_ENABLE | 276 | #ifdef OLED_ENABLE |
277 | void oled_task_user(void) { | 277 | bool oled_task_user(void) { |
278 | // get layer Number | 278 | // get layer Number |
279 | uint8_t currentDefault = get_highest_layer(default_layer_state); | 279 | uint8_t currentDefault = get_highest_layer(default_layer_state); |
280 | uint8_t currentLayer = get_highest_layer(layer_state); | 280 | uint8_t currentLayer = get_highest_layer(layer_state); |
@@ -326,5 +326,6 @@ void oled_task_user(void) { | |||
326 | // pressed key / 4th line of the logo | 326 | // pressed key / 4th line of the logo |
327 | render_row(3, " "); | 327 | render_row(3, " "); |
328 | } | 328 | } |
329 | return false; | ||
329 | } | 330 | } |
330 | #endif // #ifdef OLED_ENABLE | 331 | #endif // #ifdef OLED_ENABLE |
diff --git a/keyboards/palette1202/keymaps/key-check/keymap.c b/keyboards/palette1202/keymaps/key-check/keymap.c index 6291b5f8a..00666007a 100644 --- a/keyboards/palette1202/keymaps/key-check/keymap.c +++ b/keyboards/palette1202/keymaps/key-check/keymap.c | |||
@@ -142,10 +142,11 @@ bool encoder_update_user(uint8_t index, bool clockwise) { | |||
142 | 142 | ||
143 | // OLED Display | 143 | // OLED Display |
144 | #ifdef OLED_ENABLE | 144 | #ifdef OLED_ENABLE |
145 | void oled_task_user(void) { | 145 | bool oled_task_user(void) { |
146 | render_row(0, "TEST"); | 146 | render_row(0, "TEST"); |
147 | render_row(1, "test"); | 147 | render_row(1, "test"); |
148 | render_row(2, "TEST"); | 148 | render_row(2, "TEST"); |
149 | render_row(3, "test"); | 149 | render_row(3, "test"); |
150 | return false; | ||
150 | } | 151 | } |
151 | #endif // #ifdef OLED_ENABLE | 152 | #endif // #ifdef OLED_ENABLE |
diff --git a/keyboards/palette1202/palette1202.c b/keyboards/palette1202/palette1202.c index be7fd6443..a193964e3 100644 --- a/keyboards/palette1202/palette1202.c +++ b/keyboards/palette1202/palette1202.c | |||
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | // initialize OLED if OLED is enabled | 18 | // initialize OLED if OLED is enabled |
19 | #ifdef OLED_ENABLE | 19 | #ifdef OLED_ENABLE |
20 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 20 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
21 | return OLED_ROTATION_180; | 21 | return OLED_ROTATION_180; |
22 | } | 22 | } |
23 | #endif | 23 | #endif |
diff --git a/keyboards/pistachio_pro/keymaps/default/keymap.c b/keyboards/pistachio_pro/keymaps/default/keymap.c index a79b9a2b5..3fe6e8a5f 100644 --- a/keyboards/pistachio_pro/keymaps/default/keymap.c +++ b/keyboards/pistachio_pro/keymaps/default/keymap.c | |||
@@ -83,12 +83,12 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
83 | return OLED_ROTATION_180; | 83 | return OLED_ROTATION_180; |
84 | } | 84 | } |
85 | 85 | ||
86 | void oled_task_user(void) { | 86 | bool oled_task_user(void) { |
87 | oled_write_ln_P(PSTR(" - PistachioPro -"), false); | 87 | oled_write_ln_P(PSTR(" - PistachioPro -"), false); |
88 | print_airstate(); | 88 | print_airstate(); |
89 | print_keylog(); | 89 | print_keylog(); |
90 | 90 | ||
91 | return; | 91 | return false; |
92 | } | 92 | } |
93 | 93 | ||
94 | /* Encoder */ | 94 | /* Encoder */ |
@@ -120,4 +120,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
120 | } | 120 | } |
121 | 121 | ||
122 | return true; | 122 | return true; |
123 | } \ No newline at end of file | 123 | } |
diff --git a/keyboards/pistachio_pro/keymaps/rate/keymap.c b/keyboards/pistachio_pro/keymaps/rate/keymap.c index e08e16770..7aa70c51d 100644 --- a/keyboards/pistachio_pro/keymaps/rate/keymap.c +++ b/keyboards/pistachio_pro/keymaps/rate/keymap.c | |||
@@ -85,12 +85,12 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
85 | return OLED_ROTATION_180; | 85 | return OLED_ROTATION_180; |
86 | } | 86 | } |
87 | 87 | ||
88 | void oled_task_user(void) { | 88 | bool oled_task_user(void) { |
89 | oled_write_ln_P(PSTR(" - PistachioPro -"), false); | 89 | oled_write_ln_P(PSTR(" - PistachioPro -"), false); |
90 | print_airstate(); | 90 | print_airstate(); |
91 | print_keylog(); | 91 | print_keylog(); |
92 | 92 | ||
93 | return; | 93 | return false; |
94 | } | 94 | } |
95 | 95 | ||
96 | /* Encoder */ | 96 | /* Encoder */ |
@@ -122,4 +122,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
122 | } | 122 | } |
123 | 123 | ||
124 | return true; | 124 | return true; |
125 | } \ No newline at end of file | 125 | } |
diff --git a/keyboards/pistachio_pro/keymaps/via/keymap.c b/keyboards/pistachio_pro/keymaps/via/keymap.c index 833bbb8ec..7517b4a6e 100644 --- a/keyboards/pistachio_pro/keymaps/via/keymap.c +++ b/keyboards/pistachio_pro/keymaps/via/keymap.c | |||
@@ -101,12 +101,12 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
101 | return OLED_ROTATION_180; | 101 | return OLED_ROTATION_180; |
102 | } | 102 | } |
103 | 103 | ||
104 | void oled_task_user(void) { | 104 | bool oled_task_user(void) { |
105 | oled_write_ln_P(PSTR(" - PistachioPro -"), false); | 105 | oled_write_ln_P(PSTR(" - PistachioPro -"), false); |
106 | print_airstate(); | 106 | print_airstate(); |
107 | print_keylog(); | 107 | print_keylog(); |
108 | 108 | ||
109 | return; | 109 | return false; |
110 | } | 110 | } |
111 | 111 | ||
112 | /* Encoder */ | 112 | /* Encoder */ |
@@ -138,4 +138,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
138 | } | 138 | } |
139 | 139 | ||
140 | return true; | 140 | return true; |
141 | } \ No newline at end of file | 141 | } |
diff --git a/keyboards/plut0nium/0x3e/keymaps/default/keymap.c b/keyboards/plut0nium/0x3e/keymaps/default/keymap.c index ed2c464e4..8f1a1d196 100644 --- a/keyboards/plut0nium/0x3e/keymaps/default/keymap.c +++ b/keyboards/plut0nium/0x3e/keymaps/default/keymap.c | |||
@@ -24,15 +24,15 @@ enum layer_names { | |||
24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
25 | /* Base */ | 25 | /* Base */ |
26 | [_QWERTY] = LAYOUT( | 26 | [_QWERTY] = LAYOUT( |
27 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | 27 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, |
28 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, | 28 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, |
29 | MO(_FN), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, | 29 | MO(_FN), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, |
30 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_PGUP, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | 30 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_PGUP, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, |
31 | KC_LCTL, KC_LGUI, KC_MENU, KC_LALT, KC_SPC, KC_SPC, KC_PGDN, KC_SPC, KC_SPC, KC_RALT, KC_LBRC, KC_RBRC, KC_RCTL | 31 | KC_LCTL, KC_LGUI, KC_MENU, KC_LALT, KC_SPC, KC_SPC, KC_PGDN, KC_SPC, KC_SPC, KC_RALT, KC_LBRC, KC_RBRC, KC_RCTL |
32 | ), | 32 | ), |
33 | [_FN] = LAYOUT( | 33 | [_FN] = LAYOUT( |
34 | KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL, | 34 | KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL, |
35 | RESET, _______, KC_UP, _______, _______, _______, _______, _______, _______, KC_F11, KC_F12, _______, | 35 | RESET, _______, KC_UP, _______, _______, _______, _______, _______, _______, KC_F11, KC_F12, _______, |
36 | _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, | 36 | _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, |
37 | _______, RGB_HUI, RGB_SAI, RGB_VAI, RGB_MOD, _______, KC_END, _______, _______, BL_INC, KC_MPLY, KC_VOLU, KC_MUTE, | 37 | _______, RGB_HUI, RGB_SAI, RGB_VAI, RGB_MOD, _______, KC_END, _______, _______, BL_INC, KC_MPLY, KC_VOLU, KC_MUTE, |
38 | _______, RGB_HUD, RGB_SAD, RGB_VAD, RGB_TOG, RGB_TOG, KC_HOME, BL_TOGG, BL_TOGG, BL_DEC, KC_MPRV, KC_VOLD, KC_MNXT | 38 | _______, RGB_HUD, RGB_SAD, RGB_VAD, RGB_TOG, RGB_TOG, KC_HOME, BL_TOGG, BL_TOGG, BL_DEC, KC_MPRV, KC_VOLD, KC_MNXT |
@@ -43,11 +43,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
43 | static void render_logo(void) { | 43 | static void render_logo(void) { |
44 | static const char PROGMEM my_logo[] = { | 44 | static const char PROGMEM my_logo[] = { |
45 | // '0x3E_logo_32x16', 32x16px | 45 | // '0x3E_logo_32x16', 32x16px |
46 | 0xff, 0x0f, 0x07, 0xf3, 0x73, 0xb3, 0x07, 0x0f, 0xff, 0x3f, 0x3f, 0xff, 0xff, 0x3f, 0x3f, 0xff, | 46 | 0xff, 0x0f, 0x07, 0xf3, 0x73, 0xb3, 0x07, 0x0f, 0xff, 0x3f, 0x3f, 0xff, 0xff, 0x3f, 0x3f, 0xff, |
47 | 0xe7, 0xe3, 0x33, 0x33, 0x03, 0x87, 0xff, 0xff, 0x03, 0x03, 0x33, 0x33, 0x33, 0xf3, 0xff, 0xff, | 47 | 0xe7, 0xe3, 0x33, 0x33, 0x03, 0x87, 0xff, 0xff, 0x03, 0x03, 0x33, 0x33, 0x33, 0xf3, 0xff, 0xff, |
48 | 0x7f, 0x78, 0x70, 0x66, 0x67, 0x67, 0x70, 0x78, 0x7f, 0x67, 0x62, 0x78, 0x78, 0x62, 0x67, 0x7f, | 48 | 0x7f, 0x78, 0x70, 0x66, 0x67, 0x67, 0x70, 0x78, 0x7f, 0x67, 0x62, 0x78, 0x78, 0x62, 0x67, 0x7f, |
49 | 0x73, 0x63, 0x67, 0x67, 0x60, 0x70, 0x7f, 0x7f, 0x60, 0x60, 0x67, 0x67, 0x67, 0x67, 0x7f, 0x7f | 49 | 0x73, 0x63, 0x67, 0x67, 0x60, 0x70, 0x7f, 0x7f, 0x60, 0x60, 0x67, 0x67, 0x67, 0x67, 0x7f, 0x7f |
50 | }; | 50 | }; |
51 | oled_write_raw_P(my_logo, sizeof(my_logo)); | 51 | oled_write_raw_P(my_logo, sizeof(my_logo)); |
52 | } | 52 | } |
53 | 53 | ||
@@ -117,7 +117,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
117 | return OLED_ROTATION_270; // flips the display 180 degrees if offhand | 117 | return OLED_ROTATION_270; // flips the display 180 degrees if offhand |
118 | } | 118 | } |
119 | 119 | ||
120 | void oled_task_user(void) { | 120 | bool oled_task_user(void) { |
121 | render_logo(); | 121 | render_logo(); |
122 | oled_set_cursor(0,2); // default logo is 16px high (2 lines) | 122 | oled_set_cursor(0,2); // default logo is 16px high (2 lines) |
123 | 123 | ||
@@ -153,5 +153,6 @@ void oled_task_user(void) { | |||
153 | render_rgb_status(); | 153 | render_rgb_status(); |
154 | #endif | 154 | #endif |
155 | 155 | ||
156 | return false; | ||
156 | } | 157 | } |
157 | #endif | 158 | #endif |
diff --git a/keyboards/pteron36/keymaps/via/keymap.c b/keyboards/pteron36/keymaps/via/keymap.c index ce96ea6c5..40e3088a8 100644 --- a/keyboards/pteron36/keymaps/via/keymap.c +++ b/keyboards/pteron36/keymaps/via/keymap.c | |||
@@ -1,19 +1,19 @@ | |||
1 | /* Copyright HarshitGoel96 2020 | 1 | /* Copyright HarshitGoel96 2020 |
2 | * With permission from mattdibi, the original maintainer of the Redox hardware. | 2 | * With permission from mattdibi, the original maintainer of the Redox hardware. |
3 | * | 3 | * |
4 | * This program is free software: you can redistribute it and/or modify | 4 | * This program is free software: you can redistribute it and/or modify |
5 | * it under the terms of the GNU General Public License as published by | 5 | * it under the terms of the GNU General Public License as published by |
6 | * the Free Software Foundation, either version 2 of the License, or | 6 | * the Free Software Foundation, either version 2 of the License, or |
7 | * (at your option) any later version. | 7 | * (at your option) any later version. |
8 | * | 8 | * |
9 | * This program is distributed in the hope that it will be useful, | 9 | * This program is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU General Public License for more details. | 12 | * GNU General Public License for more details. |
13 | * | 13 | * |
14 | * You should have received a copy of the GNU General Public License | 14 | * You should have received a copy of the GNU General Public License |
15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | */ | 16 | */ |
17 | #include QMK_KEYBOARD_H | 17 | #include QMK_KEYBOARD_H |
18 | 18 | ||
19 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | 19 | // Each layer gets a name for readability, which is then used in the keymap matrix below. |
@@ -131,12 +131,13 @@ static void render_status(void){ | |||
131 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 131 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
132 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 132 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
133 | } | 133 | } |
134 | void oled_task_user(void) { | 134 | bool oled_task_user(void) { |
135 | if (is_keyboard_master()) { | 135 | if (is_keyboard_master()) { |
136 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 136 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
137 | } else { | 137 | } else { |
138 | render_logo(); // Renders a static logo | 138 | render_logo(); // Renders a static logo |
139 | oled_scroll_left(); // Turns on scrolling | 139 | oled_scroll_left(); // Turns on scrolling |
140 | } | 140 | } |
141 | return false; | ||
141 | } | 142 | } |
142 | #endif | 143 | #endif |
diff --git a/keyboards/pteron36/pteron36.c b/keyboards/pteron36/pteron36.c index 3288626f0..b7f7d8d44 100644 --- a/keyboards/pteron36/pteron36.c +++ b/keyboards/pteron36/pteron36.c | |||
@@ -37,7 +37,10 @@ bool encoder_update_kb(uint8_t index, bool clockwise) { | |||
37 | } | 37 | } |
38 | //common oled support. | 38 | //common oled support. |
39 | #ifdef OLED_DRIVER_ENABLE | 39 | #ifdef OLED_DRIVER_ENABLE |
40 | __attribute__((weak)) void oled_task_user(void) { | 40 | bool oled_task_kb(void) { |
41 | if (!oled_task_user()) { | ||
42 | return false; | ||
43 | } | ||
41 | if (is_keyboard_master()) { | 44 | if (is_keyboard_master()) { |
42 | oled_write_P(PSTR("Layer: "), false); | 45 | oled_write_P(PSTR("Layer: "), false); |
43 | switch (get_highest_layer(layer_state)) { | 46 | switch (get_highest_layer(layer_state)) { |
@@ -62,5 +65,6 @@ __attribute__((weak)) void oled_task_user(void) { | |||
62 | oled_write_P(qmk_logo, false); | 65 | oled_write_P(qmk_logo, false); |
63 | oled_scroll_left(); // Turns on scrolling | 66 | oled_scroll_left(); // Turns on scrolling |
64 | } | 67 | } |
68 | return false; | ||
65 | } | 69 | } |
66 | #endif | 70 | #endif |
diff --git a/keyboards/rainkeeb/keymaps/default/keymap.c b/keyboards/rainkeeb/keymaps/default/keymap.c index 3d82661f8..08cf7462c 100644 --- a/keyboards/rainkeeb/keymaps/default/keymap.c +++ b/keyboards/rainkeeb/keymaps/default/keymap.c | |||
@@ -87,7 +87,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) { | |||
87 | 87 | ||
88 | char wpm[10]; | 88 | char wpm[10]; |
89 | 89 | ||
90 | void oled_task_user(void) { | 90 | bool oled_task_user(void) { |
91 | sprintf(wpm, "WPM: %03d", get_current_wpm()); | 91 | sprintf(wpm, "WPM: %03d", get_current_wpm()); |
92 | 92 | ||
93 | // Host Keyboard Layer Status | 93 | // Host Keyboard Layer Status |
@@ -113,4 +113,5 @@ void oled_task_user(void) { | |||
113 | } | 113 | } |
114 | oled_write_P(PSTR(" "), false); | 114 | oled_write_P(PSTR(" "), false); |
115 | oled_write(wpm, false); | 115 | oled_write(wpm, false); |
116 | return false; | ||
116 | } | 117 | } |
diff --git a/keyboards/rainkeeb/keymaps/via/keymap.c b/keyboards/rainkeeb/keymaps/via/keymap.c index 3d82661f8..08cf7462c 100644 --- a/keyboards/rainkeeb/keymaps/via/keymap.c +++ b/keyboards/rainkeeb/keymaps/via/keymap.c | |||
@@ -87,7 +87,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) { | |||
87 | 87 | ||
88 | char wpm[10]; | 88 | char wpm[10]; |
89 | 89 | ||
90 | void oled_task_user(void) { | 90 | bool oled_task_user(void) { |
91 | sprintf(wpm, "WPM: %03d", get_current_wpm()); | 91 | sprintf(wpm, "WPM: %03d", get_current_wpm()); |
92 | 92 | ||
93 | // Host Keyboard Layer Status | 93 | // Host Keyboard Layer Status |
@@ -113,4 +113,5 @@ void oled_task_user(void) { | |||
113 | } | 113 | } |
114 | oled_write_P(PSTR(" "), false); | 114 | oled_write_P(PSTR(" "), false); |
115 | oled_write(wpm, false); | 115 | oled_write(wpm, false); |
116 | return false; | ||
116 | } | 117 | } |
diff --git a/keyboards/ramonimbao/herringbone/pro/keymaps/default/keymap.c b/keyboards/ramonimbao/herringbone/pro/keymaps/default/keymap.c index ac3c11e69..a04192a3e 100644 --- a/keyboards/ramonimbao/herringbone/pro/keymaps/default/keymap.c +++ b/keyboards/ramonimbao/herringbone/pro/keymaps/default/keymap.c | |||
@@ -80,7 +80,7 @@ static void render_pattern(void) { | |||
80 | } | 80 | } |
81 | } | 81 | } |
82 | 82 | ||
83 | void oled_task_user(void) { | 83 | bool oled_task_user(void) { |
84 | // Render Herringbone pattern | 84 | // Render Herringbone pattern |
85 | render_pattern(); | 85 | render_pattern(); |
86 | oled_render(); | 86 | oled_render(); |
@@ -94,5 +94,6 @@ void oled_task_user(void) { | |||
94 | oled_set_cursor(0, 2); | 94 | oled_set_cursor(0, 2); |
95 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 95 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
96 | oled_render(); | 96 | oled_render(); |
97 | return false; | ||
97 | } | 98 | } |
98 | #endif | 99 | #endif |
diff --git a/keyboards/ramonimbao/herringbone/pro/keymaps/iso/keymap.c b/keyboards/ramonimbao/herringbone/pro/keymaps/iso/keymap.c index 3409fbc16..6d280905d 100644 --- a/keyboards/ramonimbao/herringbone/pro/keymaps/iso/keymap.c +++ b/keyboards/ramonimbao/herringbone/pro/keymaps/iso/keymap.c | |||
@@ -80,7 +80,7 @@ static void render_pattern(void) { | |||
80 | } | 80 | } |
81 | } | 81 | } |
82 | 82 | ||
83 | void oled_task_user(void) { | 83 | bool oled_task_user(void) { |
84 | // Render Herringbone pattern | 84 | // Render Herringbone pattern |
85 | render_pattern(); | 85 | render_pattern(); |
86 | oled_render(); | 86 | oled_render(); |
@@ -94,5 +94,6 @@ void oled_task_user(void) { | |||
94 | oled_set_cursor(0, 2); | 94 | oled_set_cursor(0, 2); |
95 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 95 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
96 | oled_render(); | 96 | oled_render(); |
97 | return false; | ||
97 | } | 98 | } |
98 | #endif | 99 | #endif |
diff --git a/keyboards/ramonimbao/herringbone/pro/keymaps/via/keymap.c b/keyboards/ramonimbao/herringbone/pro/keymaps/via/keymap.c index 5c97a3fb8..fceca1a8b 100644 --- a/keyboards/ramonimbao/herringbone/pro/keymaps/via/keymap.c +++ b/keyboards/ramonimbao/herringbone/pro/keymaps/via/keymap.c | |||
@@ -132,7 +132,7 @@ static void render_pattern(void) { | |||
132 | } | 132 | } |
133 | } | 133 | } |
134 | 134 | ||
135 | void oled_task_user(void) { | 135 | bool oled_task_user(void) { |
136 | // Render Herringbone pattern | 136 | // Render Herringbone pattern |
137 | render_pattern(); | 137 | render_pattern(); |
138 | oled_render(); | 138 | oled_render(); |
@@ -146,5 +146,6 @@ void oled_task_user(void) { | |||
146 | oled_set_cursor(0, 2); | 146 | oled_set_cursor(0, 2); |
147 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 147 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
148 | oled_render(); | 148 | oled_render(); |
149 | return false; | ||
149 | } | 150 | } |
150 | #endif | 151 | #endif |
diff --git a/keyboards/rart/rart67m/rart67m.c b/keyboards/rart/rart67m/rart67m.c index 6b2c6dffb..e696a5cf3 100644 --- a/keyboards/rart/rart67m/rart67m.c +++ b/keyboards/rart/rart67m/rart67m.c | |||
@@ -21,11 +21,14 @@ | |||
21 | #define ANIM_FRAME_DURATION 200 | 21 | #define ANIM_FRAME_DURATION 200 |
22 | #define ANIM_SIZE 512 | 22 | #define ANIM_SIZE 512 |
23 | #ifdef OLED_ENABLE | 23 | #ifdef OLED_ENABLE |
24 | __attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 24 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
25 | return OLED_ROTATION_180; | 25 | return OLED_ROTATION_180; |
26 | } | 26 | } |
27 | 27 | ||
28 | __attribute__((weak)) void oled_task_user(void) { | 28 | bool oled_task_kb(void) { |
29 | if (!oled_task_user()) { | ||
30 | return false; | ||
31 | } | ||
29 | static uint32_t anim_timer = 0; | 32 | static uint32_t anim_timer = 0; |
30 | static uint32_t anim_sleep = 0; | 33 | static uint32_t anim_sleep = 0; |
31 | static uint8_t current_idle_frame = 0; | 34 | static uint8_t current_idle_frame = 0; |
@@ -128,7 +131,7 @@ static uint8_t current_tap_frame = 0; | |||
128 | } | 131 | } |
129 | } | 132 | } |
130 | } | 133 | } |
131 | 134 | return false; | |
132 | } | 135 | } |
133 | 136 | ||
134 | #endif \ No newline at end of file | 137 | #endif |
diff --git a/keyboards/rart/rart75m/rart75m.c b/keyboards/rart/rart75m/rart75m.c index 73e37d2d1..87a12a9a1 100644 --- a/keyboards/rart/rart75m/rart75m.c +++ b/keyboards/rart/rart75m/rart75m.c | |||
@@ -31,7 +31,10 @@ bool encoder_update_kb(uint8_t index, bool clockwise) { | |||
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | #ifdef OLED_ENABLE | 33 | #ifdef OLED_ENABLE |
34 | __attribute__((weak)) void oled_task_user(void) { | 34 | bool oled_task_kb(void) { |
35 | if (!oled_task_user()) { | ||
36 | return false; | ||
37 | } | ||
35 | // Host Keyboard Layer Status | 38 | // Host Keyboard Layer Status |
36 | oled_write_P(PSTR("R A R T 7 5 M\nLayer: "), false); | 39 | oled_write_P(PSTR("R A R T 7 5 M\nLayer: "), false); |
37 | 40 | ||
@@ -52,6 +55,8 @@ __attribute__((weak)) void oled_task_user(void) { | |||
52 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 55 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
53 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 56 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
54 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 57 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
58 | |||
59 | return false; | ||
55 | } | 60 | } |
56 | 61 | ||
57 | #endif | 62 | #endif |
diff --git a/keyboards/rart/rartand/keymaps/default/keymap.c b/keyboards/rart/rartand/keymaps/default/keymap.c index 2dd9378b0..3d04ffc6f 100644 --- a/keyboards/rart/rartand/keymaps/default/keymap.c +++ b/keyboards/rart/rartand/keymaps/default/keymap.c | |||
@@ -47,7 +47,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
47 | }; | 47 | }; |
48 | 48 | ||
49 | #ifdef OLED_ENABLE | 49 | #ifdef OLED_ENABLE |
50 | void oled_task_user(void) { | 50 | bool oled_task_user(void) { |
51 | // Host Keyboard Layer Status | 51 | // Host Keyboard Layer Status |
52 | oled_write_P(PSTR("* R A R T A N D *\n Powered by QMK\nLayer: "), false); | 52 | oled_write_P(PSTR("* R A R T A N D *\n Powered by QMK\nLayer: "), false); |
53 | 53 | ||
@@ -74,5 +74,6 @@ void oled_task_user(void) { | |||
74 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 74 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
75 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 75 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
76 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 76 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
77 | return false; | ||
77 | } | 78 | } |
78 | #endif | 79 | #endif |
diff --git a/keyboards/rart/rartand/keymaps/via/keymap.c b/keyboards/rart/rartand/keymaps/via/keymap.c index 2dd9378b0..3d04ffc6f 100644 --- a/keyboards/rart/rartand/keymaps/via/keymap.c +++ b/keyboards/rart/rartand/keymaps/via/keymap.c | |||
@@ -47,7 +47,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
47 | }; | 47 | }; |
48 | 48 | ||
49 | #ifdef OLED_ENABLE | 49 | #ifdef OLED_ENABLE |
50 | void oled_task_user(void) { | 50 | bool oled_task_user(void) { |
51 | // Host Keyboard Layer Status | 51 | // Host Keyboard Layer Status |
52 | oled_write_P(PSTR("* R A R T A N D *\n Powered by QMK\nLayer: "), false); | 52 | oled_write_P(PSTR("* R A R T A N D *\n Powered by QMK\nLayer: "), false); |
53 | 53 | ||
@@ -74,5 +74,6 @@ void oled_task_user(void) { | |||
74 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 74 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
75 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 75 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
76 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 76 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
77 | return false; | ||
77 | } | 78 | } |
78 | #endif | 79 | #endif |
diff --git a/keyboards/rart/rartland/rartland.c b/keyboards/rart/rartland/rartland.c index 089ba9295..e4a555d12 100644 --- a/keyboards/rart/rartland/rartland.c +++ b/keyboards/rart/rartland/rartland.c | |||
@@ -31,7 +31,10 @@ bool encoder_update_kb(uint8_t index, bool clockwise) { | |||
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | #ifdef OLED_ENABLE | 33 | #ifdef OLED_ENABLE |
34 | __attribute__((weak)) void oled_task_user(void) { | 34 | bool oled_task_kb(void) { |
35 | if (!oled_task_user()) { | ||
36 | return false; | ||
37 | } | ||
35 | // Host Keyboard Layer Status | 38 | // Host Keyboard Layer Status |
36 | oled_write_P(PSTR("R A R T L A N D\nLayer: "), false); | 39 | oled_write_P(PSTR("R A R T L A N D\nLayer: "), false); |
37 | 40 | ||
@@ -52,5 +55,7 @@ __attribute__((weak)) void oled_task_user(void) { | |||
52 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 55 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
53 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 56 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
54 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 57 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
58 | |||
59 | return false; | ||
55 | } | 60 | } |
56 | #endif | 61 | #endif |
diff --git a/keyboards/rart/rartlice/keymaps/default/keymap.c b/keyboards/rart/rartlice/keymaps/default/keymap.c index 2ba4abff3..372a856bc 100644 --- a/keyboards/rart/rartlice/keymaps/default/keymap.c +++ b/keyboards/rart/rartlice/keymaps/default/keymap.c | |||
@@ -35,7 +35,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
35 | }; | 35 | }; |
36 | 36 | ||
37 | #ifdef OLED_ENABLE | 37 | #ifdef OLED_ENABLE |
38 | void oled_task_user(void) { | 38 | bool oled_task_user(void) { |
39 | // Host Keyboard Layer Status | 39 | // Host Keyboard Layer Status |
40 | oled_write_P(PSTR("R A R T L I C E\nLayer: "), false); | 40 | oled_write_P(PSTR("R A R T L I C E\nLayer: "), false); |
41 | 41 | ||
@@ -56,5 +56,6 @@ void oled_task_user(void) { | |||
56 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 56 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
57 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 57 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
58 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 58 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
59 | return false; | ||
59 | } | 60 | } |
60 | #endif | 61 | #endif |
diff --git a/keyboards/rart/rartlice/keymaps/via/keymap.c b/keyboards/rart/rartlice/keymaps/via/keymap.c index 22e52c403..700bb7f41 100644 --- a/keyboards/rart/rartlice/keymaps/via/keymap.c +++ b/keyboards/rart/rartlice/keymaps/via/keymap.c | |||
@@ -49,7 +49,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
49 | }; | 49 | }; |
50 | 50 | ||
51 | #ifdef OLED_ENABLE | 51 | #ifdef OLED_ENABLE |
52 | void oled_task_user(void) { | 52 | bool oled_task_user(void) { |
53 | // Host Keyboard Layer Status | 53 | // Host Keyboard Layer Status |
54 | oled_write_P(PSTR("* R A R T L I C E *\n Powered by QMK\nLayer: "), false); | 54 | oled_write_P(PSTR("* R A R T L I C E *\n Powered by QMK\nLayer: "), false); |
55 | 55 | ||
@@ -76,5 +76,6 @@ void oled_task_user(void) { | |||
76 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 76 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
77 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 77 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
78 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 78 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
79 | return false; | ||
79 | } | 80 | } |
80 | #endif | 81 | #endif |
diff --git a/keyboards/rgbkb/mun/keymaps/default/keymap.c b/keyboards/rgbkb/mun/keymaps/default/keymap.c index b120c3a37..866b8a0d1 100644 --- a/keyboards/rgbkb/mun/keymaps/default/keymap.c +++ b/keyboards/rgbkb/mun/keymaps/default/keymap.c | |||
@@ -230,7 +230,7 @@ static void render_touch(void) | |||
230 | oled_write_P(touch_encoder_calibrating() ? PSTR("CLBRT") : PSTR(" "), false); | 230 | oled_write_P(touch_encoder_calibrating() ? PSTR("CLBRT") : PSTR(" "), false); |
231 | } | 231 | } |
232 | 232 | ||
233 | void oled_task_user(void) { | 233 | bool oled_task_user(void) { |
234 | if (is_keyboard_left()) { | 234 | if (is_keyboard_left()) { |
235 | render_icon(); | 235 | render_icon(); |
236 | oled_write_P(PSTR(" "), false); | 236 | oled_write_P(PSTR(" "), false); |
@@ -245,6 +245,7 @@ void oled_task_user(void) { | |||
245 | oled_write_P(PSTR(" "), false); | 245 | oled_write_P(PSTR(" "), false); |
246 | render_rgb_menu(); | 246 | render_rgb_menu(); |
247 | } | 247 | } |
248 | return false; | ||
248 | } | 249 | } |
249 | 250 | ||
250 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 251 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { |
diff --git a/keyboards/rgbkb/mun/keymaps/via/keymap.c b/keyboards/rgbkb/mun/keymaps/via/keymap.c index b120c3a37..866b8a0d1 100644 --- a/keyboards/rgbkb/mun/keymaps/via/keymap.c +++ b/keyboards/rgbkb/mun/keymaps/via/keymap.c | |||
@@ -230,7 +230,7 @@ static void render_touch(void) | |||
230 | oled_write_P(touch_encoder_calibrating() ? PSTR("CLBRT") : PSTR(" "), false); | 230 | oled_write_P(touch_encoder_calibrating() ? PSTR("CLBRT") : PSTR(" "), false); |
231 | } | 231 | } |
232 | 232 | ||
233 | void oled_task_user(void) { | 233 | bool oled_task_user(void) { |
234 | if (is_keyboard_left()) { | 234 | if (is_keyboard_left()) { |
235 | render_icon(); | 235 | render_icon(); |
236 | oled_write_P(PSTR(" "), false); | 236 | oled_write_P(PSTR(" "), false); |
@@ -245,6 +245,7 @@ void oled_task_user(void) { | |||
245 | oled_write_P(PSTR(" "), false); | 245 | oled_write_P(PSTR(" "), false); |
246 | render_rgb_menu(); | 246 | render_rgb_menu(); |
247 | } | 247 | } |
248 | return false; | ||
248 | } | 249 | } |
249 | 250 | ||
250 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 251 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { |
diff --git a/keyboards/rgbkb/mun/keymaps/xulkal2/keymap.c b/keyboards/rgbkb/mun/keymaps/xulkal2/keymap.c index cd1eec751..ae5c0c9b1 100644 --- a/keyboards/rgbkb/mun/keymaps/xulkal2/keymap.c +++ b/keyboards/rgbkb/mun/keymaps/xulkal2/keymap.c | |||
@@ -119,7 +119,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
119 | _______, KC_LEFT, KC_DOWN, KC_RIGHT,_______, _______, _______, _______, _______, KC_KP_4, KC_KP_5, KC_KP_6, KC_PPLS, _______, | 119 | _______, KC_LEFT, KC_DOWN, KC_RIGHT,_______, _______, _______, _______, _______, KC_KP_4, KC_KP_5, KC_KP_6, KC_PPLS, _______, |
120 | _______, _______, _______, _______, _______, EEP_RST, _______, _______, _______, KC_KP_1, KC_KP_2, KC_KP_3, KC_PENT, _______, | 120 | _______, _______, _______, _______, _______, EEP_RST, _______, _______, _______, KC_KP_1, KC_KP_2, KC_KP_3, KC_PENT, _______, |
121 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_KP_0, KC_PDOT, KC_PENT, _______, | 121 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_KP_0, KC_PDOT, KC_PENT, _______, |
122 | 122 | ||
123 | _______, _______, _______, _______, _______, _______, _______, _______, | 123 | _______, _______, _______, _______, _______, _______, _______, _______, |
124 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | 124 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ |
125 | ) | 125 | ) |
@@ -223,7 +223,7 @@ void render_debug_scan(void) { | |||
223 | } | 223 | } |
224 | #endif | 224 | #endif |
225 | 225 | ||
226 | void oled_task_user(void) { | 226 | bool oled_task_user(void) { |
227 | #if !defined(MATRIX_SCAN_DEBUG) | 227 | #if !defined(MATRIX_SCAN_DEBUG) |
228 | if (is_keyboard_left()) { | 228 | if (is_keyboard_left()) { |
229 | render_layer(); | 229 | render_layer(); |
@@ -241,8 +241,9 @@ void oled_task_user(void) { | |||
241 | #endif | 241 | #endif |
242 | oled_set_cursor(0, 12); | 242 | oled_set_cursor(0, 12); |
243 | render_icon(); | 243 | render_icon(); |
244 | return false; | ||
244 | } | 245 | } |
245 | 246 | ||
246 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 247 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { |
247 | return OLED_ROTATION_270; | 248 | return OLED_ROTATION_270; |
248 | } \ No newline at end of file | 249 | } |
diff --git a/keyboards/rgbkb/pan/keymaps/default/keymap.c b/keyboards/rgbkb/pan/keymaps/default/keymap.c index dac385aa4..1188db837 100644 --- a/keyboards/rgbkb/pan/keymaps/default/keymap.c +++ b/keyboards/rgbkb/pan/keymaps/default/keymap.c | |||
@@ -71,7 +71,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
71 | }; | 71 | }; |
72 | 72 | ||
73 | #ifdef OLED_ENABLE | 73 | #ifdef OLED_ENABLE |
74 | void oled_task_user(void) { | 74 | bool oled_task_user(void) { |
75 | // Host Keyboard Layer Status | 75 | // Host Keyboard Layer Status |
76 | oled_write_P(PSTR("RGBKB Pan\n"), false); | 76 | oled_write_P(PSTR("RGBKB Pan\n"), false); |
77 | oled_write_P(PSTR("Layer: "), false); | 77 | oled_write_P(PSTR("Layer: "), false); |
@@ -97,6 +97,8 @@ void oled_task_user(void) { | |||
97 | led_t led_state = host_keyboard_led_state(); | 97 | led_t led_state = host_keyboard_led_state(); |
98 | oled_write_P(led_state.num_lock ? PSTR("Numlock On\n") : PSTR(" \n"), false); | 98 | oled_write_P(led_state.num_lock ? PSTR("Numlock On\n") : PSTR(" \n"), false); |
99 | oled_write_P(led_state.caps_lock ? PSTR("Capslock On \n") : PSTR(" \n"), false); | 99 | oled_write_P(led_state.caps_lock ? PSTR("Capslock On \n") : PSTR(" \n"), false); |
100 | |||
101 | return false; | ||
100 | } | 102 | } |
101 | #endif | 103 | #endif |
102 | 104 | ||
diff --git a/keyboards/rgbkb/sol/keymaps/brianweyer/keymap.c b/keyboards/rgbkb/sol/keymaps/brianweyer/keymap.c index aa465a696..d6867ffa9 100644 --- a/keyboards/rgbkb/sol/keymaps/brianweyer/keymap.c +++ b/keyboards/rgbkb/sol/keymaps/brianweyer/keymap.c | |||
@@ -260,11 +260,13 @@ static void render_status(void) { | |||
260 | oled_write_P(led_usb_state & (1<<USB_LED_SCROLL_LOCK) ? PSTR("SCLK ") : PSTR(" "), false); | 260 | oled_write_P(led_usb_state & (1<<USB_LED_SCROLL_LOCK) ? PSTR("SCLK ") : PSTR(" "), false); |
261 | } | 261 | } |
262 | 262 | ||
263 | void oled_task_user(void) { | 263 | bool oled_task_user(void) { |
264 | if (is_keyboard_master()) | 264 | if (is_keyboard_master()) |
265 | render_status(); | 265 | render_status(); |
266 | else | 266 | else |
267 | render_logo(); | 267 | render_logo(); |
268 | |||
269 | return false; | ||
268 | } | 270 | } |
269 | 271 | ||
270 | #endif | 272 | #endif |
diff --git a/keyboards/rgbkb/sol/keymaps/danielhklein/keymap.c b/keyboards/rgbkb/sol/keymaps/danielhklein/keymap.c index 2ef78f122..c24d38270 100644 --- a/keyboards/rgbkb/sol/keymaps/danielhklein/keymap.c +++ b/keyboards/rgbkb/sol/keymaps/danielhklein/keymap.c | |||
@@ -324,11 +324,13 @@ static void render_status(void) { | |||
324 | oled_write_P(led_usb_state & (1<<USB_LED_SCROLL_LOCK) ? PSTR("SCLK ") : PSTR(" "), false); | 324 | oled_write_P(led_usb_state & (1<<USB_LED_SCROLL_LOCK) ? PSTR("SCLK ") : PSTR(" "), false); |
325 | } | 325 | } |
326 | 326 | ||
327 | void oled_task_user(void) { | 327 | bool oled_task_user(void) { |
328 | if (is_keyboard_master()) | 328 | if (is_keyboard_master()) |
329 | render_status(); | 329 | render_status(); |
330 | else | 330 | else |
331 | render_logo(); | 331 | render_logo(); |
332 | |||
333 | return false; | ||
332 | } | 334 | } |
333 | 335 | ||
334 | #endif | 336 | #endif |
diff --git a/keyboards/rgbkb/sol/keymaps/default/keymap.c b/keyboards/rgbkb/sol/keymaps/default/keymap.c index 6fc2cb777..41108a29a 100644 --- a/keyboards/rgbkb/sol/keymaps/default/keymap.c +++ b/keyboards/rgbkb/sol/keymaps/default/keymap.c | |||
@@ -360,13 +360,14 @@ static void render_status(void) { | |||
360 | #endif | 360 | #endif |
361 | } | 361 | } |
362 | 362 | ||
363 | void oled_task_user(void) { | 363 | bool oled_task_user(void) { |
364 | if (is_keyboard_master()) { | 364 | if (is_keyboard_master()) { |
365 | render_status(); | 365 | render_status(); |
366 | } else { | 366 | } else { |
367 | render_logo(); | 367 | render_logo(); |
368 | oled_scroll_left(); | 368 | oled_scroll_left(); |
369 | } | 369 | } |
370 | return false; | ||
370 | } | 371 | } |
371 | 372 | ||
372 | #endif | 373 | #endif |
diff --git a/keyboards/rgbkb/sol/keymaps/xyverz/keymap.c b/keyboards/rgbkb/sol/keymaps/xyverz/keymap.c index 73f7220a6..bdcfbb1b9 100644 --- a/keyboards/rgbkb/sol/keymaps/xyverz/keymap.c +++ b/keyboards/rgbkb/sol/keymaps/xyverz/keymap.c | |||
@@ -350,13 +350,14 @@ static void render_status(void) { | |||
350 | #endif | 350 | #endif |
351 | } | 351 | } |
352 | 352 | ||
353 | void oled_task_user(void) { | 353 | bool oled_task_user(void) { |
354 | if (is_keyboard_master()) { | 354 | if (is_keyboard_master()) { |
355 | render_status(); | 355 | render_status(); |
356 | } else { | 356 | } else { |
357 | render_logo(); | 357 | render_logo(); |
358 | oled_scroll_left(); | 358 | oled_scroll_left(); |
359 | } | 359 | } |
360 | return false; | ||
360 | } | 361 | } |
361 | 362 | ||
362 | #endif | 363 | #endif |
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 |
diff --git a/keyboards/rgbkb/zygomorph/keymaps/default_oled/keymap.c b/keyboards/rgbkb/zygomorph/keymaps/default_oled/keymap.c index ffc222324..4f5055dfd 100644 --- a/keyboards/rgbkb/zygomorph/keymaps/default_oled/keymap.c +++ b/keyboards/rgbkb/zygomorph/keymaps/default_oled/keymap.c | |||
@@ -222,13 +222,14 @@ static void render_status(void) { | |||
222 | oled_write_ln_P(led_usb_state & (1<<USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); | 222 | oled_write_ln_P(led_usb_state & (1<<USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); |
223 | } | 223 | } |
224 | 224 | ||
225 | void oled_task_user(void) { | 225 | bool oled_task_user(void) { |
226 | if (is_keyboard_master()) { | 226 | if (is_keyboard_master()) { |
227 | render_status(); | 227 | render_status(); |
228 | } else { | 228 | } else { |
229 | render_logo(); | 229 | render_logo(); |
230 | oled_scroll_left(); | 230 | oled_scroll_left(); |
231 | } | 231 | } |
232 | return false; | ||
232 | } | 233 | } |
233 | 234 | ||
234 | #endif | 235 | #endif |
diff --git a/keyboards/ristretto/ristretto.c b/keyboards/ristretto/ristretto.c index a39c366b0..b73e5043c 100644 --- a/keyboards/ristretto/ristretto.c +++ b/keyboards/ristretto/ristretto.c | |||
@@ -36,11 +36,14 @@ bool encoder_update_kb(uint8_t index, bool clockwise) { | |||
36 | } | 36 | } |
37 | 37 | ||
38 | #ifdef OLED_ENABLE | 38 | #ifdef OLED_ENABLE |
39 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 39 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
40 | return OLED_ROTATION_270; | 40 | return OLED_ROTATION_270; |
41 | } | 41 | } |
42 | 42 | ||
43 | __attribute__((weak)) void oled_task_user(void) { | 43 | bool oled_task_kb(void) { |
44 | if (!oled_task_user()) { | ||
45 | return false; | ||
46 | } | ||
44 | oled_write_P(PSTR("\n\n"), false); | 47 | oled_write_P(PSTR("\n\n"), false); |
45 | oled_write_ln_P(PSTR("LAYER"), false); | 48 | oled_write_ln_P(PSTR("LAYER"), false); |
46 | oled_write_ln_P(PSTR(""), false); | 49 | oled_write_ln_P(PSTR(""), false); |
@@ -58,6 +61,7 @@ __attribute__((weak)) void oled_task_user(void) { | |||
58 | oled_write_P(PSTR("ADJ\n"), false); | 61 | oled_write_P(PSTR("ADJ\n"), false); |
59 | break; | 62 | break; |
60 | } | 63 | } |
64 | return false; | ||
61 | } | 65 | } |
62 | 66 | ||
63 | #endif | 67 | #endif |
diff --git a/keyboards/rocketboard_16/keymaps/default/keymap.c b/keyboards/rocketboard_16/keymaps/default/keymap.c index 050ab9f5b..4ce537737 100644 --- a/keyboards/rocketboard_16/keymaps/default/keymap.c +++ b/keyboards/rocketboard_16/keymaps/default/keymap.c | |||
@@ -209,7 +209,7 @@ static void render_logo(uint8_t startX, uint8_t startY) | |||
209 | 209 | ||
210 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_180; } | 210 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_180; } |
211 | 211 | ||
212 | void oled_task_user(void) | 212 | bool oled_task_user(void) |
213 | { | 213 | { |
214 | // Playing the animation | 214 | // Playing the animation |
215 | if((timer_elapsed32(anim_timer) > ANIM_FRAME_DURATION) && (splash_dur_counter < SPLASH_DUR)) | 215 | if((timer_elapsed32(anim_timer) > ANIM_FRAME_DURATION) && (splash_dur_counter < SPLASH_DUR)) |
@@ -348,6 +348,7 @@ void oled_task_user(void) | |||
348 | 348 | ||
349 | } | 349 | } |
350 | 350 | ||
351 | return false; | ||
351 | } | 352 | } |
352 | 353 | ||
353 | // Process the extra/extended keycode functionality | 354 | // Process the extra/extended keycode functionality |
diff --git a/keyboards/rocketboard_16/keymaps/via/keymap.c b/keyboards/rocketboard_16/keymaps/via/keymap.c index 050ab9f5b..4ce537737 100644 --- a/keyboards/rocketboard_16/keymaps/via/keymap.c +++ b/keyboards/rocketboard_16/keymaps/via/keymap.c | |||
@@ -209,7 +209,7 @@ static void render_logo(uint8_t startX, uint8_t startY) | |||
209 | 209 | ||
210 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_180; } | 210 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_180; } |
211 | 211 | ||
212 | void oled_task_user(void) | 212 | bool oled_task_user(void) |
213 | { | 213 | { |
214 | // Playing the animation | 214 | // Playing the animation |
215 | if((timer_elapsed32(anim_timer) > ANIM_FRAME_DURATION) && (splash_dur_counter < SPLASH_DUR)) | 215 | if((timer_elapsed32(anim_timer) > ANIM_FRAME_DURATION) && (splash_dur_counter < SPLASH_DUR)) |
@@ -348,6 +348,7 @@ void oled_task_user(void) | |||
348 | 348 | ||
349 | } | 349 | } |
350 | 350 | ||
351 | return false; | ||
351 | } | 352 | } |
352 | 353 | ||
353 | // Process the extra/extended keycode functionality | 354 | // Process the extra/extended keycode functionality |
diff --git a/keyboards/rubi/lib/oled.c b/keyboards/rubi/lib/oled.c index d48d27323..9534cdd9b 100644 --- a/keyboards/rubi/lib/oled.c +++ b/keyboards/rubi/lib/oled.c | |||
@@ -239,7 +239,8 @@ void render_frame(void) { | |||
239 | } | 239 | } |
240 | } | 240 | } |
241 | 241 | ||
242 | __attribute__((weak)) void oled_task_user(void) { | 242 | bool oled_task_kb(void) { |
243 | if (!oled_task_user()) { return false; } | ||
243 | if (timer_elapsed(oled_frame_timer) > OLED_FRAME_TIMEOUT) { | 244 | if (timer_elapsed(oled_frame_timer) > OLED_FRAME_TIMEOUT) { |
244 | oled_clear(); | 245 | oled_clear(); |
245 | oled_frame_timer = timer_read(); | 246 | oled_frame_timer = timer_read(); |
@@ -259,9 +260,10 @@ __attribute__((weak)) void oled_task_user(void) { | |||
259 | } else { | 260 | } else { |
260 | oled_mode = OLED_MODE_DEFAULT; | 261 | oled_mode = OLED_MODE_DEFAULT; |
261 | } | 262 | } |
263 | return false; | ||
262 | } | 264 | } |
263 | 265 | ||
264 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 266 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
265 | oled_logo_timer = timer_read(); | 267 | oled_logo_timer = timer_read(); |
266 | oled_frame_timer = timer_read(); | 268 | oled_frame_timer = timer_read(); |
267 | return rotation; | 269 | return rotation; |
diff --git a/keyboards/sawnsprojects/satxri6key/keymaps/via/keymap.c b/keyboards/sawnsprojects/satxri6key/keymaps/via/keymap.c index e09ef997f..0a2bdb39d 100644 --- a/keyboards/sawnsprojects/satxri6key/keymaps/via/keymap.c +++ b/keyboards/sawnsprojects/satxri6key/keymaps/via/keymap.c | |||
@@ -145,7 +145,7 @@ static void render_anim(void) { | |||
145 | } | 145 | } |
146 | 146 | ||
147 | // Used to draw on to the oled screen | 147 | // Used to draw on to the oled screen |
148 | void oled_task_user(void) { | 148 | bool oled_task_user(void) { |
149 | render_anim(); // renders pixelart | 149 | render_anim(); // renders pixelart |
150 | 150 | ||
151 | oled_set_cursor(0, 0); // sets cursor to (row, column) using charactar spacing (5 rows on 128x32 screen, anything more will overflow back to the top) | 151 | oled_set_cursor(0, 0); // sets cursor to (row, column) using charactar spacing (5 rows on 128x32 screen, anything more will overflow back to the top) |
@@ -160,5 +160,6 @@ void oled_task_user(void) { | |||
160 | led_t led_state = host_keyboard_led_state(); // caps lock stuff, prints CAPS on new line if caps led is on | 160 | led_t led_state = host_keyboard_led_state(); // caps lock stuff, prints CAPS on new line if caps led is on |
161 | oled_set_cursor(0, 1); | 161 | oled_set_cursor(0, 1); |
162 | oled_write_P(led_state.caps_lock ? PSTR("CAPS") : PSTR(" "), false); | 162 | oled_write_P(led_state.caps_lock ? PSTR("CAPS") : PSTR(" "), false); |
163 | return false; | ||
163 | } | 164 | } |
164 | #endif | 165 | #endif |
diff --git a/keyboards/sendyyeah/pix/keymaps/default/keymap.c b/keyboards/sendyyeah/pix/keymaps/default/keymap.c index ee98aedd8..bcaf52d53 100644 --- a/keyboards/sendyyeah/pix/keymaps/default/keymap.c +++ b/keyboards/sendyyeah/pix/keymaps/default/keymap.c | |||
@@ -174,7 +174,7 @@ void draw_brightness_icon(int key_position, int row) { | |||
174 | oled_write_P(ICON_BRIGHTNESS_1, false); | 174 | oled_write_P(ICON_BRIGHTNESS_1, false); |
175 | } | 175 | } |
176 | 176 | ||
177 | void oled_task_user(void) { | 177 | bool oled_task_user(void) { |
178 | // Host Keyboard Layer Status | 178 | // Host Keyboard Layer Status |
179 | static const char PROGMEM ICON_LAYER[] = {0x80, 0x81, 0x82, 0x83, 0}; | 179 | static const char PROGMEM ICON_LAYER[] = {0x80, 0x81, 0x82, 0x83, 0}; |
180 | static const char PROGMEM ICON_ENCODER[] = {0x84, 0x85, 0x86, 0x87, 0}; | 180 | static const char PROGMEM ICON_ENCODER[] = {0x84, 0x85, 0x86, 0x87, 0}; |
@@ -229,6 +229,7 @@ void oled_task_user(void) { | |||
229 | break; | 229 | break; |
230 | } | 230 | } |
231 | 231 | ||
232 | return false; | ||
232 | } | 233 | } |
233 | 234 | ||
234 | #endif | 235 | #endif |
diff --git a/keyboards/sendyyeah/pix/keymaps/via/keymap.c b/keyboards/sendyyeah/pix/keymaps/via/keymap.c index ee98aedd8..bcaf52d53 100644 --- a/keyboards/sendyyeah/pix/keymaps/via/keymap.c +++ b/keyboards/sendyyeah/pix/keymaps/via/keymap.c | |||
@@ -174,7 +174,7 @@ void draw_brightness_icon(int key_position, int row) { | |||
174 | oled_write_P(ICON_BRIGHTNESS_1, false); | 174 | oled_write_P(ICON_BRIGHTNESS_1, false); |
175 | } | 175 | } |
176 | 176 | ||
177 | void oled_task_user(void) { | 177 | bool oled_task_user(void) { |
178 | // Host Keyboard Layer Status | 178 | // Host Keyboard Layer Status |
179 | static const char PROGMEM ICON_LAYER[] = {0x80, 0x81, 0x82, 0x83, 0}; | 179 | static const char PROGMEM ICON_LAYER[] = {0x80, 0x81, 0x82, 0x83, 0}; |
180 | static const char PROGMEM ICON_ENCODER[] = {0x84, 0x85, 0x86, 0x87, 0}; | 180 | static const char PROGMEM ICON_ENCODER[] = {0x84, 0x85, 0x86, 0x87, 0}; |
@@ -229,6 +229,7 @@ void oled_task_user(void) { | |||
229 | break; | 229 | break; |
230 | } | 230 | } |
231 | 231 | ||
232 | return false; | ||
232 | } | 233 | } |
233 | 234 | ||
234 | #endif | 235 | #endif |
diff --git a/keyboards/setta21/keymaps/salicylic/keymap.c b/keyboards/setta21/keymaps/salicylic/keymap.c index 568afd133..06fa89c9c 100644 --- a/keyboards/setta21/keymaps/salicylic/keymap.c +++ b/keyboards/setta21/keymaps/salicylic/keymap.c | |||
@@ -190,8 +190,9 @@ void render_status(void) { | |||
190 | render_layer_state(); | 190 | render_layer_state(); |
191 | } | 191 | } |
192 | 192 | ||
193 | void oled_task_user(void) { | 193 | bool oled_task_user(void) { |
194 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 194 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
195 | return false; | ||
195 | } | 196 | } |
196 | 197 | ||
197 | #endif | 198 | #endif |
diff --git a/keyboards/sofle/keymaps/default/keymap.c b/keyboards/sofle/keymaps/default/keymap.c index a64d274b5..6c078a129 100644 --- a/keyboards/sofle/keymaps/default/keymap.c +++ b/keyboards/sofle/keymaps/default/keymap.c | |||
@@ -200,12 +200,13 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
200 | return rotation; | 200 | return rotation; |
201 | } | 201 | } |
202 | 202 | ||
203 | void oled_task_user(void) { | 203 | bool oled_task_user(void) { |
204 | if (is_keyboard_master()) { | 204 | if (is_keyboard_master()) { |
205 | print_status_narrow(); | 205 | print_status_narrow(); |
206 | } else { | 206 | } else { |
207 | render_logo(); | 207 | render_logo(); |
208 | } | 208 | } |
209 | return false; | ||
209 | } | 210 | } |
210 | 211 | ||
211 | #endif | 212 | #endif |
diff --git a/keyboards/sofle/keymaps/devdev/keymap.c b/keyboards/sofle/keymaps/devdev/keymap.c index a0945b28f..b805f7f17 100644 --- a/keyboards/sofle/keymaps/devdev/keymap.c +++ b/keyboards/sofle/keymaps/devdev/keymap.c | |||
@@ -465,12 +465,13 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
465 | return rotation; | 465 | return rotation; |
466 | } | 466 | } |
467 | 467 | ||
468 | void oled_task_user(void) { | 468 | bool oled_task_user(void) { |
469 | if (is_keyboard_master()) { | 469 | if (is_keyboard_master()) { |
470 | print_status_narrow(); | 470 | print_status_narrow(); |
471 | } else { | 471 | } else { |
472 | render_logo(); | 472 | render_logo(); |
473 | } | 473 | } |
474 | return false; | ||
474 | } | 475 | } |
475 | 476 | ||
476 | #endif | 477 | #endif |
diff --git a/keyboards/sofle/keymaps/helltm/keymap.c b/keyboards/sofle/keymaps/helltm/keymap.c index 3e1bcc82e..8d6289af4 100644 --- a/keyboards/sofle/keymaps/helltm/keymap.c +++ b/keyboards/sofle/keymaps/helltm/keymap.c | |||
@@ -392,7 +392,7 @@ static void print_status_narrow(void) { | |||
392 | 392 | ||
393 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_270; } | 393 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_270; } |
394 | 394 | ||
395 | void oled_task_user(void) { | 395 | bool oled_task_user(void) { |
396 | /* KEYBOARD PET VARIABLES START */ | 396 | /* KEYBOARD PET VARIABLES START */ |
397 | 397 | ||
398 | current_wpm = get_current_wpm(); | 398 | current_wpm = get_current_wpm(); |
@@ -405,6 +405,7 @@ void oled_task_user(void) { | |||
405 | } else { | 405 | } else { |
406 | print_logo_narrow(); | 406 | print_logo_narrow(); |
407 | } | 407 | } |
408 | return false; | ||
408 | } | 409 | } |
409 | 410 | ||
410 | #endif | 411 | #endif |
diff --git a/keyboards/sofle/keymaps/j4ckofalltrades/oled.c b/keyboards/sofle/keymaps/j4ckofalltrades/oled.c index 46c791b05..de561bd0f 100644 --- a/keyboards/sofle/keymaps/j4ckofalltrades/oled.c +++ b/keyboards/sofle/keymaps/j4ckofalltrades/oled.c | |||
@@ -65,12 +65,13 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
65 | return rotation; | 65 | return rotation; |
66 | } | 66 | } |
67 | 67 | ||
68 | void oled_task_user(void) { | 68 | bool oled_task_user(void) { |
69 | if (is_keyboard_master()) { | 69 | if (is_keyboard_master()) { |
70 | print_status_narrow(); | 70 | print_status_narrow(); |
71 | } else { | 71 | } else { |
72 | render_logo(); | 72 | render_logo(); |
73 | } | 73 | } |
74 | return false; | ||
74 | } | 75 | } |
75 | 76 | ||
76 | #endif | 77 | #endif |
diff --git a/keyboards/sofle/keymaps/killmaster/keymap.c b/keyboards/sofle/keymaps/killmaster/keymap.c index 34c07f3c4..71db0fc85 100644 --- a/keyboards/sofle/keymaps/killmaster/keymap.c +++ b/keyboards/sofle/keymaps/killmaster/keymap.c | |||
@@ -211,12 +211,13 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
211 | return rotation; | 211 | return rotation; |
212 | } | 212 | } |
213 | 213 | ||
214 | void oled_task_user(void) { | 214 | bool oled_task_user(void) { |
215 | if (is_keyboard_master()) { | 215 | if (is_keyboard_master()) { |
216 | print_status_narrow(); | 216 | print_status_narrow(); |
217 | } else { | 217 | } else { |
218 | render_logo(); | 218 | render_logo(); |
219 | } | 219 | } |
220 | return false; | ||
220 | } | 221 | } |
221 | 222 | ||
222 | 223 | ||
diff --git a/keyboards/sofle/keymaps/rgb_default/keymap.c b/keyboards/sofle/keymaps/rgb_default/keymap.c index 13edbc520..1972e8bc6 100644 --- a/keyboards/sofle/keymaps/rgb_default/keymap.c +++ b/keyboards/sofle/keymaps/rgb_default/keymap.c | |||
@@ -465,12 +465,13 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
465 | return rotation; | 465 | return rotation; |
466 | } | 466 | } |
467 | 467 | ||
468 | void oled_task_user(void) { | 468 | bool oled_task_user(void) { |
469 | if (is_keyboard_master()) { | 469 | if (is_keyboard_master()) { |
470 | print_status_narrow(); | 470 | print_status_narrow(); |
471 | } else { | 471 | } else { |
472 | render_logo(); | 472 | render_logo(); |
473 | } | 473 | } |
474 | return false; | ||
474 | } | 475 | } |
475 | 476 | ||
476 | #endif | 477 | #endif |
diff --git a/keyboards/sofle/keymaps/via/oled.c b/keyboards/sofle/keymaps/via/oled.c index 8a230f000..74f06cedc 100644 --- a/keyboards/sofle/keymaps/via/oled.c +++ b/keyboards/sofle/keymaps/via/oled.c | |||
@@ -73,12 +73,13 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
73 | return rotation; | 73 | return rotation; |
74 | } | 74 | } |
75 | 75 | ||
76 | void oled_task_user(void) { | 76 | bool oled_task_user(void) { |
77 | if (is_keyboard_master()) { | 77 | if (is_keyboard_master()) { |
78 | print_status_narrow(); | 78 | print_status_narrow(); |
79 | } else { | 79 | } else { |
80 | render_logo(); | 80 | render_logo(); |
81 | } | 81 | } |
82 | return false; | ||
82 | } | 83 | } |
83 | 84 | ||
84 | #endif | 85 | #endif |
diff --git a/keyboards/spaceman/pancake/rev2/rev2.c b/keyboards/spaceman/pancake/rev2/rev2.c index cd13099a9..9b186192c 100644 --- a/keyboards/spaceman/pancake/rev2/rev2.c +++ b/keyboards/spaceman/pancake/rev2/rev2.c | |||
@@ -17,10 +17,14 @@ | |||
17 | 17 | ||
18 | 18 | ||
19 | #ifdef OLED_ENABLE | 19 | #ifdef OLED_ENABLE |
20 | __attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 20 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
21 | return OLED_ROTATION_270; | 21 | return OLED_ROTATION_270; |
22 | } | 22 | } |
23 | __attribute__((weak)) void oled_task_user(void) { | 23 | |
24 | bool oled_task_kb(void) { | ||
25 | if (!oled_task_user()) { | ||
26 | return false; | ||
27 | } | ||
24 | static const char PROGMEM pancake_logo[] = { | 28 | static const char PROGMEM pancake_logo[] = { |
25 | 0x00, 0x00, 0x3e, 0x0a, 0x04, 0x00, 0x3c, 0x0a, 0x3c, 0x00, 0x3e, 0x0c, 0x18, 0x3e, 0x00, 0x3e, | 29 | 0x00, 0x00, 0x3e, 0x0a, 0x04, 0x00, 0x3c, 0x0a, 0x3c, 0x00, 0x3e, 0x0c, 0x18, 0x3e, 0x00, 0x3e, |
26 | 0x22, 0x22, 0x00, 0x3c, 0x0a, 0x3c, 0x00, 0x3e, 0x08, 0x36, 0x00, 0x3e, 0x2a, 0x22, 0x00, 0x00, | 30 | 0x22, 0x22, 0x00, 0x3c, 0x0a, 0x3c, 0x00, 0x3e, 0x08, 0x36, 0x00, 0x3e, 0x2a, 0x22, 0x00, 0x00, |
@@ -50,5 +54,6 @@ __attribute__((weak)) void oled_task_user(void) { | |||
50 | oled_write_ln_P(PSTR("Undefined"), false); | 54 | oled_write_ln_P(PSTR("Undefined"), false); |
51 | break; | 55 | break; |
52 | } | 56 | } |
57 | return false; | ||
53 | } | 58 | } |
54 | #endif | 59 | #endif |
diff --git a/keyboards/splitkb/kyria/keymaps/asapjockey/keymap.c b/keyboards/splitkb/kyria/keymaps/asapjockey/keymap.c index 8ba098eed..baf46eeac 100644 --- a/keyboards/splitkb/kyria/keymaps/asapjockey/keymap.c +++ b/keyboards/splitkb/kyria/keymaps/asapjockey/keymap.c | |||
@@ -246,12 +246,13 @@ static void render_status(void) { | |||
246 | oled_write_P(led_state.scroll_lock ? PSTR("SCRLCK ") : PSTR(" "), false); | 246 | oled_write_P(led_state.scroll_lock ? PSTR("SCRLCK ") : PSTR(" "), false); |
247 | } | 247 | } |
248 | 248 | ||
249 | void oled_task_user(void) { | 249 | bool oled_task_user(void) { |
250 | if (is_keyboard_master()) { | 250 | if (is_keyboard_master()) { |
251 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 251 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
252 | } else { | 252 | } else { |
253 | render_kyria_logo(); | 253 | render_kyria_logo(); |
254 | } | 254 | } |
255 | return false; | ||
255 | } | 256 | } |
256 | #endif | 257 | #endif |
257 | 258 | ||
diff --git a/keyboards/splitkb/kyria/keymaps/benji/keymap.c b/keyboards/splitkb/kyria/keymaps/benji/keymap.c index a670b7761..1ad50e5fc 100644 --- a/keyboards/splitkb/kyria/keymaps/benji/keymap.c +++ b/keyboards/splitkb/kyria/keymaps/benji/keymap.c | |||
@@ -200,12 +200,13 @@ static void render_status(void) { | |||
200 | oled_write_P(led_usb_state.scroll_lock ? PSTR("SCRLCK ") : PSTR(" "), false); | 200 | oled_write_P(led_usb_state.scroll_lock ? PSTR("SCRLCK ") : PSTR(" "), false); |
201 | } | 201 | } |
202 | 202 | ||
203 | void oled_task_user(void) { | 203 | bool oled_task_user(void) { |
204 | if (is_keyboard_master()) { | 204 | if (is_keyboard_master()) { |
205 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 205 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
206 | } else { | 206 | } else { |
207 | render_kyria_logo(); | 207 | render_kyria_logo(); |
208 | } | 208 | } |
209 | return false; | ||
209 | } | 210 | } |
210 | #endif | 211 | #endif |
211 | 212 | ||
diff --git a/keyboards/splitkb/kyria/keymaps/cjuniet/keymap.c b/keyboards/splitkb/kyria/keymaps/cjuniet/keymap.c index d0620309b..7e485a7be 100644 --- a/keyboards/splitkb/kyria/keymaps/cjuniet/keymap.c +++ b/keyboards/splitkb/kyria/keymaps/cjuniet/keymap.c | |||
@@ -117,11 +117,12 @@ static void render_status(void) { | |||
117 | oled_write_ln_P(PSTR(" Layer\n"), false); | 117 | oled_write_ln_P(PSTR(" Layer\n"), false); |
118 | } | 118 | } |
119 | 119 | ||
120 | void oled_task_user(void) { | 120 | bool oled_task_user(void) { |
121 | if (is_keyboard_master()) { | 121 | if (is_keyboard_master()) { |
122 | render_status(); | 122 | render_status(); |
123 | render_status_bar(); | 123 | render_status_bar(); |
124 | } else { | 124 | } else { |
125 | render_kyria_logo(); | 125 | render_kyria_logo(); |
126 | } | 126 | } |
127 | return false; | ||
127 | } | 128 | } |
diff --git a/keyboards/splitkb/kyria/keymaps/cwebster2/keymap.c b/keyboards/splitkb/kyria/keymaps/cwebster2/keymap.c index 25a58038d..1abf86501 100644 --- a/keyboards/splitkb/kyria/keymaps/cwebster2/keymap.c +++ b/keyboards/splitkb/kyria/keymaps/cwebster2/keymap.c | |||
@@ -391,12 +391,13 @@ static void render_status(void) { | |||
391 | 391 | ||
392 | } | 392 | } |
393 | 393 | ||
394 | void oled_task_user(void) { | 394 | bool oled_task_user(void) { |
395 | if (is_keyboard_master()) { | 395 | if (is_keyboard_master()) { |
396 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 396 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
397 | } else { | 397 | } else { |
398 | render_logo(); | 398 | render_logo(); |
399 | } | 399 | } |
400 | return false; | ||
400 | } | 401 | } |
401 | #endif | 402 | #endif |
402 | 403 | ||
diff --git a/keyboards/splitkb/kyria/keymaps/default/keymap.c b/keyboards/splitkb/kyria/keymaps/default/keymap.c index 243104afc..20cb279ff 100644 --- a/keyboards/splitkb/kyria/keymaps/default/keymap.c +++ b/keyboards/splitkb/kyria/keymaps/default/keymap.c | |||
@@ -226,7 +226,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
226 | #ifdef OLED_ENABLE | 226 | #ifdef OLED_ENABLE |
227 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_180; } | 227 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_180; } |
228 | 228 | ||
229 | void oled_task_user(void) { | 229 | bool oled_task_user(void) { |
230 | if (is_keyboard_master()) { | 230 | if (is_keyboard_master()) { |
231 | // QMK Logo and version information | 231 | // QMK Logo and version information |
232 | // clang-format off | 232 | // clang-format off |
@@ -287,6 +287,7 @@ void oled_task_user(void) { | |||
287 | // clang-format on | 287 | // clang-format on |
288 | oled_write_raw_P(kyria_logo, sizeof(kyria_logo)); | 288 | oled_write_raw_P(kyria_logo, sizeof(kyria_logo)); |
289 | } | 289 | } |
290 | return false; | ||
290 | } | 291 | } |
291 | #endif | 292 | #endif |
292 | 293 | ||
diff --git a/keyboards/splitkb/kyria/keymaps/ghidalgo93/keymap.c b/keyboards/splitkb/kyria/keymaps/ghidalgo93/keymap.c index 67881b03e..df542977a 100644 --- a/keyboards/splitkb/kyria/keymaps/ghidalgo93/keymap.c +++ b/keyboards/splitkb/kyria/keymaps/ghidalgo93/keymap.c | |||
@@ -214,12 +214,13 @@ static void render_status(void) { | |||
214 | oled_write_P(led_state.scroll_lock ? PSTR("SCRLCK ") : PSTR(" "), false); | 214 | oled_write_P(led_state.scroll_lock ? PSTR("SCRLCK ") : PSTR(" "), false); |
215 | } | 215 | } |
216 | 216 | ||
217 | void oled_task_user(void) { | 217 | bool oled_task_user(void) { |
218 | if (is_keyboard_master()) { | 218 | if (is_keyboard_master()) { |
219 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 219 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
220 | } else { | 220 | } else { |
221 | render_kyria_logo(); | 221 | render_kyria_logo(); |
222 | } | 222 | } |
223 | return false; | ||
223 | } | 224 | } |
224 | #endif | 225 | #endif |
225 | 226 | ||
diff --git a/keyboards/splitkb/kyria/keymaps/gotham/keymap.c b/keyboards/splitkb/kyria/keymaps/gotham/keymap.c index 498e1c112..5fdeb494e 100644 --- a/keyboards/splitkb/kyria/keymaps/gotham/keymap.c +++ b/keyboards/splitkb/kyria/keymaps/gotham/keymap.c | |||
@@ -106,7 +106,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
106 | #ifdef OLED_ENABLE | 106 | #ifdef OLED_ENABLE |
107 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_180; } | 107 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_180; } |
108 | 108 | ||
109 | void oled_task_user(void) { render_status(); } | 109 | bool oled_task_user(void) { |
110 | render_status(); | ||
111 | return false; | ||
112 | } | ||
110 | #endif | 113 | #endif |
111 | 114 | ||
112 | #ifdef ENCODER_ENABLE | 115 | #ifdef ENCODER_ENABLE |
diff --git a/keyboards/splitkb/kyria/keymaps/j-inc/keymap.c b/keyboards/splitkb/kyria/keymaps/j-inc/keymap.c index 6121dd0f8..af583a607 100644 --- a/keyboards/splitkb/kyria/keymaps/j-inc/keymap.c +++ b/keyboards/splitkb/kyria/keymaps/j-inc/keymap.c | |||
@@ -317,7 +317,7 @@ static void render_anim(void) { | |||
317 | // oled_write_raw_P(skull, 801); | 317 | // oled_write_raw_P(skull, 801); |
318 | // } | 318 | // } |
319 | 319 | ||
320 | void oled_task_user(void) { | 320 | bool oled_task_user(void) { |
321 | if (is_keyboard_master()) { | 321 | if (is_keyboard_master()) { |
322 | //render_skull(); | 322 | //render_skull(); |
323 | //oled_set_cursor(7,6); | 323 | //oled_set_cursor(7,6); |
@@ -335,6 +335,7 @@ void oled_task_user(void) { | |||
335 | oled_write(wpm_str, false); | 335 | oled_write(wpm_str, false); |
336 | 336 | ||
337 | } | 337 | } |
338 | return false; | ||
338 | } | 339 | } |
339 | #endif | 340 | #endif |
340 | 341 | ||
diff --git a/keyboards/splitkb/kyria/keymaps/jhelvy/keymap.c b/keyboards/splitkb/kyria/keymaps/jhelvy/keymap.c index a9c8db28d..e78e15ea3 100644 --- a/keyboards/splitkb/kyria/keymaps/jhelvy/keymap.c +++ b/keyboards/splitkb/kyria/keymaps/jhelvy/keymap.c | |||
@@ -161,12 +161,13 @@ static void render_status(void) { | |||
161 | 161 | ||
162 | } | 162 | } |
163 | 163 | ||
164 | void oled_task_user(void) { | 164 | bool oled_task_user(void) { |
165 | if (is_keyboard_master()) { | 165 | if (is_keyboard_master()) { |
166 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 166 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
167 | } else { | 167 | } else { |
168 | render_kyria_logo(); | 168 | render_kyria_logo(); |
169 | } | 169 | } |
170 | return false; | ||
170 | } | 171 | } |
171 | #endif | 172 | #endif |
172 | 173 | ||
diff --git a/keyboards/splitkb/kyria/keymaps/john-ezra/oled.c b/keyboards/splitkb/kyria/keymaps/john-ezra/oled.c index fe9c96d55..732cca8f7 100644 --- a/keyboards/splitkb/kyria/keymaps/john-ezra/oled.c +++ b/keyboards/splitkb/kyria/keymaps/john-ezra/oled.c | |||
@@ -478,12 +478,13 @@ void render_status_secondary(void) { | |||
478 | render_wpm_graph(); | 478 | render_wpm_graph(); |
479 | } | 479 | } |
480 | 480 | ||
481 | void oled_task_user(void) { | 481 | bool oled_task_user(void) { |
482 | if (is_keyboard_master()) { | 482 | if (is_keyboard_master()) { |
483 | render_status_main(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 483 | render_status_main(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
484 | } else { | 484 | } else { |
485 | render_status_secondary(); | 485 | render_status_secondary(); |
486 | } | 486 | } |
487 | return false; | ||
487 | } | 488 | } |
488 | 489 | ||
489 | #endif | 490 | #endif |
diff --git a/keyboards/splitkb/kyria/keymaps/mattir/keymap.c b/keyboards/splitkb/kyria/keymaps/mattir/keymap.c index 89efaec55..7b567cbd6 100644 --- a/keyboards/splitkb/kyria/keymaps/mattir/keymap.c +++ b/keyboards/splitkb/kyria/keymaps/mattir/keymap.c | |||
@@ -193,12 +193,13 @@ static void render_status(void) { | |||
193 | } | 193 | } |
194 | } | 194 | } |
195 | 195 | ||
196 | void oled_task_user(void) { | 196 | bool oled_task_user(void) { |
197 | if (is_keyboard_master()) { | 197 | if (is_keyboard_master()) { |
198 | render_status(); // Renders the current keyboard layer | 198 | render_status(); // Renders the current keyboard layer |
199 | } else { | 199 | } else { |
200 | render_mattir_logo(); | 200 | render_mattir_logo(); |
201 | } | 201 | } |
202 | return false; | ||
202 | } | 203 | } |
203 | #endif | 204 | #endif |
204 | 205 | ||
diff --git a/keyboards/splitkb/kyria/keymaps/ninjonas/oled.c b/keyboards/splitkb/kyria/keymaps/ninjonas/oled.c index 216f47534..813328aa0 100644 --- a/keyboards/splitkb/kyria/keymaps/ninjonas/oled.c +++ b/keyboards/splitkb/kyria/keymaps/ninjonas/oled.c | |||
@@ -198,12 +198,13 @@ static void render_status(void) { | |||
198 | render_mod_state(get_mods()|get_oneshot_mods()); | 198 | render_mod_state(get_mods()|get_oneshot_mods()); |
199 | } | 199 | } |
200 | 200 | ||
201 | void oled_task_user(void) { | 201 | bool oled_task_user(void) { |
202 | if (is_keyboard_master()) { | 202 | if (is_keyboard_master()) { |
203 | render_status(); | 203 | render_status(); |
204 | } else { | 204 | } else { |
205 | render_logo(); | 205 | render_logo(); |
206 | oled_scroll_left(); | 206 | oled_scroll_left(); |
207 | } | 207 | } |
208 | return false; | ||
208 | } | 209 | } |
209 | #endif | 210 | #endif |
diff --git a/keyboards/splitkb/kyria/keymaps/plattfot/keymap.c b/keyboards/splitkb/kyria/keymaps/plattfot/keymap.c index 8b4b0c263..222759d60 100644 --- a/keyboards/splitkb/kyria/keymaps/plattfot/keymap.c +++ b/keyboards/splitkb/kyria/keymaps/plattfot/keymap.c | |||
@@ -327,12 +327,13 @@ static void render_status(void) { | |||
327 | oled_write_P(led_state.scroll_lock ? PSTR("SCRLCK ") : PSTR(" "), false); | 327 | oled_write_P(led_state.scroll_lock ? PSTR("SCRLCK ") : PSTR(" "), false); |
328 | } | 328 | } |
329 | 329 | ||
330 | void oled_task_user(void) { | 330 | bool oled_task_user(void) { |
331 | if (is_keyboard_master()) { | 331 | if (is_keyboard_master()) { |
332 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 332 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
333 | } else { | 333 | } else { |
334 | render_static_info(); | 334 | render_static_info(); |
335 | } | 335 | } |
336 | return false; | ||
336 | } | 337 | } |
337 | #endif | 338 | #endif |
338 | 339 | ||
diff --git a/keyboards/splitkb/kyria/keymaps/shinze/keymap.c b/keyboards/splitkb/kyria/keymaps/shinze/keymap.c index ad9ca4da1..348341052 100644 --- a/keyboards/splitkb/kyria/keymaps/shinze/keymap.c +++ b/keyboards/splitkb/kyria/keymaps/shinze/keymap.c | |||
@@ -216,12 +216,13 @@ static void render_status(void) { | |||
216 | oled_write_P(IS_LED_ON(led_usb_state, USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); | 216 | oled_write_P(IS_LED_ON(led_usb_state, USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); |
217 | } | 217 | } |
218 | 218 | ||
219 | void oled_task_user(void) { | 219 | bool oled_task_user(void) { |
220 | if (is_keyboard_master()) { | 220 | if (is_keyboard_master()) { |
221 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 221 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
222 | } else { | 222 | } else { |
223 | render_kyria_logo(); | 223 | render_kyria_logo(); |
224 | } | 224 | } |
225 | return false; | ||
225 | } | 226 | } |
226 | #endif | 227 | #endif |
227 | 228 | ||
diff --git a/keyboards/splitkb/kyria/keymaps/tessachka/keymap.c b/keyboards/splitkb/kyria/keymaps/tessachka/keymap.c index 51a91fc91..16d2bad8a 100644 --- a/keyboards/splitkb/kyria/keymaps/tessachka/keymap.c +++ b/keyboards/splitkb/kyria/keymaps/tessachka/keymap.c | |||
@@ -231,11 +231,12 @@ static void render_status(void) { | |||
231 | oled_write_P(IS_LED_ON(led_usb_state, USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); | 231 | oled_write_P(IS_LED_ON(led_usb_state, USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); |
232 | } | 232 | } |
233 | 233 | ||
234 | void oled_task_user(void) { | 234 | bool oled_task_user(void) { |
235 | if (is_keyboard_master()) { | 235 | if (is_keyboard_master()) { |
236 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 236 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
237 | } else { | 237 | } else { |
238 | render_kyria_logo(); | 238 | render_kyria_logo(); |
239 | } | 239 | } |
240 | return false; | ||
240 | } | 241 | } |
241 | #endif | 242 | #endif |
diff --git a/keyboards/splitkb/kyria/keymaps/thomasbaart/keymap.c b/keyboards/splitkb/kyria/keymaps/thomasbaart/keymap.c index 24be4135e..0a4f1887c 100644 --- a/keyboards/splitkb/kyria/keymaps/thomasbaart/keymap.c +++ b/keyboards/splitkb/kyria/keymaps/thomasbaart/keymap.c | |||
@@ -298,12 +298,13 @@ static void render_status(void) { | |||
298 | oled_write_P(IS_LED_ON(led_usb_state, USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); | 298 | oled_write_P(IS_LED_ON(led_usb_state, USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); |
299 | } | 299 | } |
300 | 300 | ||
301 | void oled_task_user(void) { | 301 | bool oled_task_user(void) { |
302 | if (is_keyboard_master()) { | 302 | if (is_keyboard_master()) { |
303 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 303 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
304 | } else { | 304 | } else { |
305 | render_kyria_logo(); | 305 | render_kyria_logo(); |
306 | } | 306 | } |
307 | return false; | ||
307 | } | 308 | } |
308 | #endif | 309 | #endif |
309 | 310 | ||
diff --git a/keyboards/splitkb/kyria/keymaps/via/keymap.c b/keyboards/splitkb/kyria/keymaps/via/keymap.c index 730b5028c..6835652a7 100644 --- a/keyboards/splitkb/kyria/keymaps/via/keymap.c +++ b/keyboards/splitkb/kyria/keymaps/via/keymap.c | |||
@@ -191,7 +191,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) { | |||
191 | #endif | 191 | #endif |
192 | 192 | ||
193 | #ifdef OLED_ENABLE | 193 | #ifdef OLED_ENABLE |
194 | void oled_task_user(void) { | 194 | bool oled_task_user(void) { |
195 | if (is_keyboard_master()) { | 195 | if (is_keyboard_master()) { |
196 | // QMK Logo and version information | 196 | // QMK Logo and version information |
197 | // clang-format off | 197 | // clang-format off |
@@ -244,5 +244,6 @@ void oled_task_user(void) { | |||
244 | // clang-format on | 244 | // clang-format on |
245 | oled_write_raw_P(kyria_logo, sizeof(kyria_logo)); | 245 | oled_write_raw_P(kyria_logo, sizeof(kyria_logo)); |
246 | } | 246 | } |
247 | return false; | ||
247 | } | 248 | } |
248 | #endif | 249 | #endif |
diff --git a/keyboards/splitkb/kyria/keymaps/winternebs/keymap.c b/keyboards/splitkb/kyria/keymaps/winternebs/keymap.c index 082903031..4f0df9354 100755 --- a/keyboards/splitkb/kyria/keymaps/winternebs/keymap.c +++ b/keyboards/splitkb/kyria/keymaps/winternebs/keymap.c | |||
@@ -695,7 +695,7 @@ static void render_logo(void) { | |||
695 | oled_set_cursor(6,6); | 695 | oled_set_cursor(6,6); |
696 | oled_write_P(PSTR(" play asc "), false); | 696 | oled_write_P(PSTR(" play asc "), false); |
697 | } | 697 | } |
698 | void oled_task_user(void) { | 698 | bool oled_task_user(void) { |
699 | if (is_keyboard_master()) { | 699 | if (is_keyboard_master()) { |
700 | render_anim(); | 700 | render_anim(); |
701 | oled_set_cursor(0,7); | 701 | oled_set_cursor(0,7); |
@@ -728,5 +728,6 @@ void oled_task_user(void) { | |||
728 | oled_scroll_left(); | 728 | oled_scroll_left(); |
729 | 729 | ||
730 | } | 730 | } |
731 | return false; | ||
731 | } | 732 | } |
732 | #endif | 733 | #endif |
diff --git a/keyboards/splitkb/kyria/keymaps/zigotica/oled.c b/keyboards/splitkb/kyria/keymaps/zigotica/oled.c index 46bb2c3ce..ba1415dee 100644 --- a/keyboards/splitkb/kyria/keymaps/zigotica/oled.c +++ b/keyboards/splitkb/kyria/keymaps/zigotica/oled.c | |||
@@ -77,11 +77,11 @@ static void render_status(void) { | |||
77 | oled_write_P(led_state.scroll_lock ? PSTR("SCRLCK ") : PSTR(" "), false); | 77 | oled_write_P(led_state.scroll_lock ? PSTR("SCRLCK ") : PSTR(" "), false); |
78 | } | 78 | } |
79 | 79 | ||
80 | void oled_task_user(void) { | 80 | bool oled_task_user(void) { |
81 | if (!is_keyboard_left()) { | 81 | if (!is_keyboard_left()) { |
82 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) | 82 | render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc) |
83 | } else { | 83 | } else { |
84 | render_kyria_logo(); | 84 | render_kyria_logo(); |
85 | } | 85 | } |
86 | return false; | ||
86 | } | 87 | } |
87 | |||
diff --git a/keyboards/splitkb/kyria/rev1/rev1.c b/keyboards/splitkb/kyria/rev1/rev1.c index ac82f7373..b2641fb40 100644 --- a/keyboards/splitkb/kyria/rev1/rev1.c +++ b/keyboards/splitkb/kyria/rev1/rev1.c | |||
@@ -56,9 +56,14 @@ led_config_t g_led_config = { { | |||
56 | #endif | 56 | #endif |
57 | 57 | ||
58 | #ifdef OLED_ENABLE | 58 | #ifdef OLED_ENABLE |
59 | __attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_180; } | 59 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
60 | return OLED_ROTATION_180; | ||
61 | } | ||
60 | 62 | ||
61 | __attribute__((weak)) void oled_task_user(void) { | 63 | bool oled_task_kb(void) { |
64 | if (!oled_task_user()) { | ||
65 | return false; | ||
66 | } | ||
62 | if (is_keyboard_master()) { | 67 | if (is_keyboard_master()) { |
63 | // QMK Logo and version information | 68 | // QMK Logo and version information |
64 | // clang-format off | 69 | // clang-format off |
@@ -119,6 +124,7 @@ __attribute__((weak)) void oled_task_user(void) { | |||
119 | // clang-format on | 124 | // clang-format on |
120 | oled_write_raw_P(kyria_logo, sizeof(kyria_logo)); | 125 | oled_write_raw_P(kyria_logo, sizeof(kyria_logo)); |
121 | } | 126 | } |
127 | return false; | ||
122 | } | 128 | } |
123 | #endif | 129 | #endif |
124 | 130 | ||
diff --git a/keyboards/splitkb/zima/keymaps/drashna/keymap.c b/keyboards/splitkb/zima/keymaps/drashna/keymap.c index 29d03ec91..b3133c601 100644 --- a/keyboards/splitkb/zima/keymaps/drashna/keymap.c +++ b/keyboards/splitkb/zima/keymaps/drashna/keymap.c | |||
@@ -78,10 +78,10 @@ void render_user_status(void) { | |||
78 | 78 | ||
79 | void keyboard_post_init_user(void) { oled_scroll_set_speed(0); } | 79 | void keyboard_post_init_user(void) { oled_scroll_set_speed(0); } |
80 | 80 | ||
81 | void oled_task_user(void) { | 81 | bool oled_task_user(void) { |
82 | if (is_asleep) { | 82 | if (is_asleep) { |
83 | oled_off(); | 83 | oled_off(); |
84 | return; | 84 | return false;; |
85 | } | 85 | } |
86 | 86 | ||
87 | if (timer_elapsed32(oled_timer) < 30000) { | 87 | if (timer_elapsed32(oled_timer) < 30000) { |
@@ -131,6 +131,7 @@ void oled_task_user(void) { | |||
131 | oled_off(); | 131 | oled_off(); |
132 | } | 132 | } |
133 | } | 133 | } |
134 | return false; | ||
134 | } | 135 | } |
135 | 136 | ||
136 | void suspend_power_down_user(void) { is_asleep = true; } | 137 | void suspend_power_down_user(void) { is_asleep = true; } |
diff --git a/keyboards/splitkb/zima/zima.c b/keyboards/splitkb/zima/zima.c index 6570f3449..f39e3a39e 100644 --- a/keyboards/splitkb/zima/zima.c +++ b/keyboards/splitkb/zima/zima.c | |||
@@ -35,12 +35,17 @@ void suspend_wakeup_init_kb(void) { | |||
35 | suspend_wakeup_init_user(); | 35 | suspend_wakeup_init_user(); |
36 | } | 36 | } |
37 | 37 | ||
38 | __attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_180; } | 38 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
39 | return OLED_ROTATION_180; | ||
40 | } | ||
39 | 41 | ||
40 | __attribute__((weak)) void oled_task_user(void) { | 42 | bool oled_task_kb(void) { |
43 | if (!oled_task_user()) { | ||
44 | return false; | ||
45 | } | ||
41 | if (is_asleep) { | 46 | if (is_asleep) { |
42 | oled_off(); | 47 | oled_off(); |
43 | return; | 48 | return false; |
44 | } | 49 | } |
45 | 50 | ||
46 | if (timer_elapsed32(oled_timer) < 30000) { | 51 | if (timer_elapsed32(oled_timer) < 30000) { |
@@ -83,6 +88,7 @@ __attribute__((weak)) void oled_task_user(void) { | |||
83 | oled_off(); | 88 | oled_off(); |
84 | } | 89 | } |
85 | } | 90 | } |
91 | return false; | ||
86 | } | 92 | } |
87 | 93 | ||
88 | bool process_record_kb(uint16_t keycode, keyrecord_t* record) { | 94 | bool process_record_kb(uint16_t keycode, keyrecord_t* record) { |
diff --git a/keyboards/suihankey/alpha/keymaps/default/keymap.c b/keyboards/suihankey/alpha/keymaps/default/keymap.c index 79c4c3df6..b682f0f15 100644 --- a/keyboards/suihankey/alpha/keymaps/default/keymap.c +++ b/keyboards/suihankey/alpha/keymaps/default/keymap.c | |||
@@ -56,7 +56,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
56 | }; | 56 | }; |
57 | 57 | ||
58 | #ifdef OLED_ENABLE | 58 | #ifdef OLED_ENABLE |
59 | void oled_task_user(void) { | 59 | bool oled_task_user(void) { |
60 | oled_write_P(PSTR("Layer: "), false); | 60 | oled_write_P(PSTR("Layer: "), false); |
61 | switch (biton32(layer_state)) { | 61 | switch (biton32(layer_state)) { |
62 | case BASE: | 62 | case BASE: |
@@ -80,5 +80,7 @@ void oled_task_user(void) { | |||
80 | oled_write_P(IS_HOST_LED_ON(USB_LED_NUM_LOCK) ? PSTR("NUMLCK ") : PSTR(" "), false); | 80 | oled_write_P(IS_HOST_LED_ON(USB_LED_NUM_LOCK) ? PSTR("NUMLCK ") : PSTR(" "), false); |
81 | oled_write_P(IS_HOST_LED_ON(USB_LED_CAPS_LOCK) ? PSTR("CAPLCK ") : PSTR(" "), false); | 81 | oled_write_P(IS_HOST_LED_ON(USB_LED_CAPS_LOCK) ? PSTR("CAPLCK ") : PSTR(" "), false); |
82 | oled_write_P(IS_HOST_LED_ON(USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); | 82 | oled_write_P(IS_HOST_LED_ON(USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); |
83 | |||
84 | return false; | ||
83 | } | 85 | } |
84 | #endif | 86 | #endif |
diff --git a/keyboards/suihankey/rev1/keymaps/default/keymap.c b/keyboards/suihankey/rev1/keymaps/default/keymap.c index 79c4c3df6..b682f0f15 100644 --- a/keyboards/suihankey/rev1/keymaps/default/keymap.c +++ b/keyboards/suihankey/rev1/keymaps/default/keymap.c | |||
@@ -56,7 +56,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
56 | }; | 56 | }; |
57 | 57 | ||
58 | #ifdef OLED_ENABLE | 58 | #ifdef OLED_ENABLE |
59 | void oled_task_user(void) { | 59 | bool oled_task_user(void) { |
60 | oled_write_P(PSTR("Layer: "), false); | 60 | oled_write_P(PSTR("Layer: "), false); |
61 | switch (biton32(layer_state)) { | 61 | switch (biton32(layer_state)) { |
62 | case BASE: | 62 | case BASE: |
@@ -80,5 +80,7 @@ void oled_task_user(void) { | |||
80 | oled_write_P(IS_HOST_LED_ON(USB_LED_NUM_LOCK) ? PSTR("NUMLCK ") : PSTR(" "), false); | 80 | oled_write_P(IS_HOST_LED_ON(USB_LED_NUM_LOCK) ? PSTR("NUMLCK ") : PSTR(" "), false); |
81 | oled_write_P(IS_HOST_LED_ON(USB_LED_CAPS_LOCK) ? PSTR("CAPLCK ") : PSTR(" "), false); | 81 | oled_write_P(IS_HOST_LED_ON(USB_LED_CAPS_LOCK) ? PSTR("CAPLCK ") : PSTR(" "), false); |
82 | oled_write_P(IS_HOST_LED_ON(USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); | 82 | oled_write_P(IS_HOST_LED_ON(USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); |
83 | |||
84 | return false; | ||
83 | } | 85 | } |
84 | #endif | 86 | #endif |
diff --git a/keyboards/takashicompany/endzone34/keymaps/default/keymap.c b/keyboards/takashicompany/endzone34/keymaps/default/keymap.c index eb0ea5029..e4bcb3625 100644 --- a/keyboards/takashicompany/endzone34/keymaps/default/keymap.c +++ b/keyboards/takashicompany/endzone34/keymaps/default/keymap.c | |||
@@ -77,7 +77,7 @@ static void render_logo(void) { | |||
77 | oled_write_raw_P(my_logo, sizeof(my_logo)); | 77 | oled_write_raw_P(my_logo, sizeof(my_logo)); |
78 | } | 78 | } |
79 | 79 | ||
80 | void oled_task_user(void) { | 80 | bool oled_task_user(void) { |
81 | 81 | ||
82 | render_logo(); | 82 | render_logo(); |
83 | 83 | ||
@@ -108,5 +108,6 @@ void oled_task_user(void) { | |||
108 | 108 | ||
109 | oled_write_ln(count_str, false); | 109 | oled_write_ln(count_str, false); |
110 | 110 | ||
111 | return false; | ||
111 | } | 112 | } |
112 | #endif | 113 | #endif |
diff --git a/keyboards/tau4/keymaps/default/keymap.c b/keyboards/tau4/keymaps/default/keymap.c index 1a1e5b38c..6c1b2342a 100755 --- a/keyboards/tau4/keymaps/default/keymap.c +++ b/keyboards/tau4/keymaps/default/keymap.c | |||
@@ -140,7 +140,8 @@ static void render_status(void) { | |||
140 | } | 140 | } |
141 | } | 141 | } |
142 | 142 | ||
143 | void oled_task_user(void) { | 143 | bool oled_task_user(void) { |
144 | render_status(); | 144 | render_status(); |
145 | return false; | ||
145 | } | 146 | } |
146 | #endif | 147 | #endif |
diff --git a/keyboards/tender/macrowo_pad/keymaps/default/keymap.c b/keyboards/tender/macrowo_pad/keymaps/default/keymap.c index fc3a45c98..685fbd7e0 100644 --- a/keyboards/tender/macrowo_pad/keymaps/default/keymap.c +++ b/keyboards/tender/macrowo_pad/keymaps/default/keymap.c | |||
@@ -50,7 +50,8 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
50 | return OLED_ROTATION_270; | 50 | return OLED_ROTATION_270; |
51 | } | 51 | } |
52 | 52 | ||
53 | void oled_task_user(void) { | 53 | bool oled_task_user(void) { |
54 | oled_write_P(PSTR("OWO\nWhat's\nthis?"), false); | 54 | oled_write_P(PSTR("OWO\nWhat's\nthis?"), false); |
55 | return false; | ||
55 | } | 56 | } |
56 | #endif | 57 | #endif |
diff --git a/keyboards/tender/macrowo_pad/keymaps/via/keymap.c b/keyboards/tender/macrowo_pad/keymaps/via/keymap.c index 84c7e3e44..e4e2c131e 100644 --- a/keyboards/tender/macrowo_pad/keymaps/via/keymap.c +++ b/keyboards/tender/macrowo_pad/keymaps/via/keymap.c | |||
@@ -58,7 +58,8 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
58 | return OLED_ROTATION_270; | 58 | return OLED_ROTATION_270; |
59 | } | 59 | } |
60 | 60 | ||
61 | void oled_task_user(void) { | 61 | bool oled_task_user(void) { |
62 | oled_write_P(PSTR("OWO\nWhat's\nthis?"), false); | 62 | oled_write_P(PSTR("OWO\nWhat's\nthis?"), false); |
63 | return false; | ||
63 | } | 64 | } |
64 | #endif | 65 | #endif |
diff --git a/keyboards/tkc/m0lly/keymaps/default/keymap.c b/keyboards/tkc/m0lly/keymaps/default/keymap.c index 846429674..bb065fa23 100644 --- a/keyboards/tkc/m0lly/keymaps/default/keymap.c +++ b/keyboards/tkc/m0lly/keymaps/default/keymap.c | |||
@@ -68,7 +68,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
68 | }; | 68 | }; |
69 | 69 | ||
70 | #ifdef OLED_ENABLE | 70 | #ifdef OLED_ENABLE |
71 | void oled_task_user(void) { | 71 | bool oled_task_user(void) { |
72 | oled_write_P(PSTR("M0lly\n"),false); | 72 | oled_write_P(PSTR("M0lly\n"),false); |
73 | 73 | ||
74 | // Layer status | 74 | // Layer status |
@@ -91,5 +91,7 @@ void oled_task_user(void) { | |||
91 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 91 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
92 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 92 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
93 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 93 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
94 | |||
95 | return false; | ||
94 | } | 96 | } |
95 | #endif | 97 | #endif |
diff --git a/keyboards/tkc/m0lly/keymaps/via/keymap.c b/keyboards/tkc/m0lly/keymaps/via/keymap.c index 333e29f4e..40f75b457 100644 --- a/keyboards/tkc/m0lly/keymaps/via/keymap.c +++ b/keyboards/tkc/m0lly/keymaps/via/keymap.c | |||
@@ -86,7 +86,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
86 | }; | 86 | }; |
87 | 87 | ||
88 | #ifdef OLED_ENABLE | 88 | #ifdef OLED_ENABLE |
89 | void oled_task_user(void) { | 89 | bool oled_task_user(void) { |
90 | oled_write_P(PSTR("M0lly\n"),false); | 90 | oled_write_P(PSTR("M0lly\n"),false); |
91 | 91 | ||
92 | // Layer Status | 92 | // Layer Status |
@@ -115,5 +115,7 @@ void oled_task_user(void) { | |||
115 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 115 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
116 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 116 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
117 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 117 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
118 | |||
119 | return false; | ||
118 | } | 120 | } |
119 | #endif | 121 | #endif |
diff --git a/keyboards/tkc/tkc1800/keymaps/default/keymap.c b/keyboards/tkc/tkc1800/keymaps/default/keymap.c index 762d5c4ed..29a19e680 100644 --- a/keyboards/tkc/tkc1800/keymaps/default/keymap.c +++ b/keyboards/tkc/tkc1800/keymaps/default/keymap.c | |||
@@ -80,7 +80,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
80 | 80 | ||
81 | 81 | ||
82 | #ifdef OLED_ENABLE | 82 | #ifdef OLED_ENABLE |
83 | void oled_task_user(void) { | 83 | bool oled_task_user(void) { |
84 | oled_write_P(PSTR("TKC1800\n"),false); | 84 | oled_write_P(PSTR("TKC1800\n"),false); |
85 | // Host Keyboard Layer Status | 85 | // Host Keyboard Layer Status |
86 | oled_write_P(PSTR("Layer: "), false); | 86 | oled_write_P(PSTR("Layer: "), false); |
@@ -102,5 +102,7 @@ void oled_task_user(void) { | |||
102 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 102 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
103 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 103 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
104 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 104 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
105 | |||
106 | return false; | ||
105 | } | 107 | } |
106 | #endif | 108 | #endif |
diff --git a/keyboards/tkc/tkc1800/keymaps/smt/keymap.c b/keyboards/tkc/tkc1800/keymaps/smt/keymap.c index dd552cee8..9eceaa5bd 100644 --- a/keyboards/tkc/tkc1800/keymaps/smt/keymap.c +++ b/keyboards/tkc/tkc1800/keymaps/smt/keymap.c | |||
@@ -145,7 +145,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
145 | } | 145 | } |
146 | 146 | ||
147 | #ifdef OLED_ENABLE | 147 | #ifdef OLED_ENABLE |
148 | void oled_task_user(void) { | 148 | bool oled_task_user(void) { |
149 | oled_write_P(PSTR("TKC1800\n"),false); | 149 | oled_write_P(PSTR("TKC1800\n"),false); |
150 | // Host Keyboard Layer Status | 150 | // Host Keyboard Layer Status |
151 | oled_write_P(PSTR("Layer: "), false); | 151 | oled_write_P(PSTR("Layer: "), false); |
@@ -173,5 +173,7 @@ void oled_task_user(void) { | |||
173 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 173 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
174 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 174 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
175 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 175 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
176 | |||
177 | return false; | ||
176 | } | 178 | } |
177 | #endif | 179 | #endif |
diff --git a/keyboards/tkc/tkc1800/keymaps/via/keymap.c b/keyboards/tkc/tkc1800/keymaps/via/keymap.c index d05a1d420..74ab1149f 100644 --- a/keyboards/tkc/tkc1800/keymaps/via/keymap.c +++ b/keyboards/tkc/tkc1800/keymaps/via/keymap.c | |||
@@ -98,7 +98,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
98 | }; | 98 | }; |
99 | 99 | ||
100 | #ifdef OLED_ENABLE | 100 | #ifdef OLED_ENABLE |
101 | void oled_task_user(void) { | 101 | bool oled_task_user(void) { |
102 | oled_write_P(PSTR("TKC1800\n"),false); | 102 | oled_write_P(PSTR("TKC1800\n"),false); |
103 | // Host Keyboard Layer Status | 103 | // Host Keyboard Layer Status |
104 | oled_write_P(PSTR("Layer: "), false); | 104 | oled_write_P(PSTR("Layer: "), false); |
@@ -126,5 +126,7 @@ void oled_task_user(void) { | |||
126 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 126 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
127 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 127 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
128 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 128 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
129 | |||
130 | return false; | ||
129 | } | 131 | } |
130 | #endif | 132 | #endif |
diff --git a/keyboards/tkc/tkc1800/keymaps/wkl/keymap.c b/keyboards/tkc/tkc1800/keymaps/wkl/keymap.c index da8e8b932..9349af7bc 100644 --- a/keyboards/tkc/tkc1800/keymaps/wkl/keymap.c +++ b/keyboards/tkc/tkc1800/keymaps/wkl/keymap.c | |||
@@ -62,7 +62,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
62 | }; | 62 | }; |
63 | 63 | ||
64 | #ifdef OLED_ENABLE | 64 | #ifdef OLED_ENABLE |
65 | void oled_task_user(void) { | 65 | bool oled_task_user(void) { |
66 | oled_write_P(PSTR("TKC1800\n"),false); | 66 | oled_write_P(PSTR("TKC1800\n"),false); |
67 | // Host Keyboard Layer Status | 67 | // Host Keyboard Layer Status |
68 | oled_write_P(PSTR("Layer: "), false); | 68 | oled_write_P(PSTR("Layer: "), false); |
@@ -84,5 +84,7 @@ void oled_task_user(void) { | |||
84 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 84 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
85 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 85 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
86 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 86 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
87 | |||
88 | return false; | ||
87 | } | 89 | } |
88 | #endif | 90 | #endif |
diff --git a/keyboards/tkc/tkc1800/keymaps/yanfali/keymap.c b/keyboards/tkc/tkc1800/keymaps/yanfali/keymap.c index cee80a48c..2ebfe33c3 100644 --- a/keyboards/tkc/tkc1800/keymaps/yanfali/keymap.c +++ b/keyboards/tkc/tkc1800/keymaps/yanfali/keymap.c | |||
@@ -62,7 +62,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
62 | }; | 62 | }; |
63 | 63 | ||
64 | #ifdef OLED_ENABLE | 64 | #ifdef OLED_ENABLE |
65 | void oled_task_user(void) { | 65 | bool oled_task_user(void) { |
66 | oled_write_P(PSTR("TKC1800\n"),false); | 66 | oled_write_P(PSTR("TKC1800\n"),false); |
67 | // Host Keyboard Layer Status | 67 | // Host Keyboard Layer Status |
68 | oled_write_P(PSTR("Layer: "), false); | 68 | oled_write_P(PSTR("Layer: "), false); |
@@ -84,5 +84,7 @@ void oled_task_user(void) { | |||
84 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | 84 | oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); |
85 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | 85 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); |
86 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | 86 | oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); |
87 | |||
88 | return false; | ||
87 | } | 89 | } |
88 | #endif | 90 | #endif |
diff --git a/keyboards/tkw/grandiceps/keymaps/default/keymap.c b/keyboards/tkw/grandiceps/keymaps/default/keymap.c index 14ae9619e..e3de33616 100644 --- a/keyboards/tkw/grandiceps/keymaps/default/keymap.c +++ b/keyboards/tkw/grandiceps/keymaps/default/keymap.c | |||
@@ -416,12 +416,13 @@ static void print_status_narrow(void) { | |||
416 | oled_write_P(PSTR("\n\n"), false); | 416 | oled_write_P(PSTR("\n\n"), false); |
417 | } | 417 | } |
418 | 418 | ||
419 | void oled_task_user(void) { | 419 | bool oled_task_user(void) { |
420 | if (is_keyboard_master()) { | 420 | if (is_keyboard_master()) { |
421 | print_status_narrow(); | 421 | print_status_narrow(); |
422 | } else { | 422 | } else { |
423 | render_logo(); | 423 | render_logo(); |
424 | } | 424 | } |
425 | return false; | ||
425 | } | 426 | } |
426 | 427 | ||
427 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 428 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { |
diff --git a/keyboards/torn/bongocat.c b/keyboards/torn/bongocat.c index 00f5cda6a..21322c953 100644 --- a/keyboards/torn/bongocat.c +++ b/keyboards/torn/bongocat.c | |||
@@ -34,7 +34,10 @@ static bool show_logo = true; | |||
34 | 34 | ||
35 | __attribute__((weak)) extern const char PROGMEM bongocat_logo[]; | 35 | __attribute__((weak)) extern const char PROGMEM bongocat_logo[]; |
36 | 36 | ||
37 | void oled_task_user(void) { | 37 | bool oled_task_kb(void) { |
38 | if (!oled_task_user()) { | ||
39 | return false; | ||
40 | } | ||
38 | 41 | ||
39 | // clang-format off | 42 | // clang-format off |
40 | static const char PROGMEM idle[][FRAME_SIZE] = { | 43 | static const char PROGMEM idle[][FRAME_SIZE] = { |
@@ -347,7 +350,7 @@ void oled_task_user(void) { | |||
347 | oled_off(); | 350 | oled_off(); |
348 | anim_timer = 0; | 351 | anim_timer = 0; |
349 | show_logo = true; | 352 | show_logo = true; |
350 | return; | 353 | return false; |
351 | } | 354 | } |
352 | 355 | ||
353 | if (timer_elapsed32(anim_timer) > FRAME_DURATION) { | 356 | if (timer_elapsed32(anim_timer) > FRAME_DURATION) { |
@@ -369,6 +372,7 @@ void oled_task_user(void) { | |||
369 | } | 372 | } |
370 | current_frame++; | 373 | current_frame++; |
371 | } | 374 | } |
375 | return false; | ||
372 | } | 376 | } |
373 | 377 | ||
374 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | 378 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |
diff --git a/keyboards/treadstone48/keymaps/default/keymap.c b/keyboards/treadstone48/keymaps/default/keymap.c index fc53d7e57..f1b37364b 100644 --- a/keyboards/treadstone48/keymaps/default/keymap.c +++ b/keyboards/treadstone48/keymaps/default/keymap.c | |||
@@ -167,13 +167,14 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
167 | return rotation; | 167 | return rotation; |
168 | } | 168 | } |
169 | 169 | ||
170 | void oled_task_user(void) { | 170 | bool oled_task_user(void) { |
171 | 171 | ||
172 | if (is_keyboard_master()) { | 172 | if (is_keyboard_master()) { |
173 | render_status(); | 173 | render_status(); |
174 | } else { | 174 | } else { |
175 | render_logo(); | 175 | render_logo(); |
176 | } | 176 | } |
177 | return false; | ||
177 | } | 178 | } |
178 | 179 | ||
179 | #else | 180 | #else |
diff --git a/keyboards/treadstone48/keymaps/like_jis/keymap.c b/keyboards/treadstone48/keymaps/like_jis/keymap.c index b86ab5cdb..1e90a2416 100644 --- a/keyboards/treadstone48/keymaps/like_jis/keymap.c +++ b/keyboards/treadstone48/keymaps/like_jis/keymap.c | |||
@@ -167,13 +167,14 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
167 | return rotation; | 167 | return rotation; |
168 | } | 168 | } |
169 | 169 | ||
170 | void oled_task_user(void) { | 170 | bool oled_task_user(void) { |
171 | 171 | ||
172 | if (is_keyboard_master()) { | 172 | if (is_keyboard_master()) { |
173 | render_status(); | 173 | render_status(); |
174 | } else { | 174 | } else { |
175 | render_logo(); | 175 | render_logo(); |
176 | } | 176 | } |
177 | return false; | ||
177 | } | 178 | } |
178 | 179 | ||
179 | #else | 180 | #else |
diff --git a/keyboards/treadstone48/rev1/keymaps/like_jis_rs/keymap.c b/keyboards/treadstone48/rev1/keymaps/like_jis_rs/keymap.c index a6a52e067..e1f083588 100644 --- a/keyboards/treadstone48/rev1/keymaps/like_jis_rs/keymap.c +++ b/keyboards/treadstone48/rev1/keymaps/like_jis_rs/keymap.c | |||
@@ -219,13 +219,14 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
219 | return rotation; | 219 | return rotation; |
220 | } | 220 | } |
221 | 221 | ||
222 | void oled_task_user(void) { | 222 | bool oled_task_user(void) { |
223 | 223 | ||
224 | if (is_keyboard_master()) { | 224 | if (is_keyboard_master()) { |
225 | render_status(); | 225 | render_status(); |
226 | } else { | 226 | } else { |
227 | render_logo(); | 227 | render_logo(); |
228 | } | 228 | } |
229 | return false; | ||
229 | } | 230 | } |
230 | 231 | ||
231 | #else | 232 | #else |
diff --git a/keyboards/ungodly/launch_pad/keymaps/default/keymap.c b/keyboards/ungodly/launch_pad/keymaps/default/keymap.c index 42b6b397c..43e0e72bd 100644 --- a/keyboards/ungodly/launch_pad/keymaps/default/keymap.c +++ b/keyboards/ungodly/launch_pad/keymaps/default/keymap.c | |||
@@ -274,7 +274,7 @@ static void render_light_logo(void) { | |||
274 | oled_write_raw_P(light_logo, sizeof(light_logo)); | 274 | oled_write_raw_P(light_logo, sizeof(light_logo)); |
275 | } | 275 | } |
276 | 276 | ||
277 | void oled_task_user(void) { | 277 | bool oled_task_user(void) { |
278 | switch (get_highest_layer(layer_state)) { | 278 | switch (get_highest_layer(layer_state)) { |
279 | case 0: | 279 | case 0: |
280 | render_rocket_logo(); | 280 | render_rocket_logo(); |
@@ -290,5 +290,6 @@ void oled_task_user(void) { | |||
290 | oled_write_ln_P(PSTR(" UND"), false); | 290 | oled_write_ln_P(PSTR(" UND"), false); |
291 | break; | 291 | break; |
292 | } | 292 | } |
293 | return false; | ||
293 | } | 294 | } |
294 | #endif | 295 | #endif |
diff --git a/keyboards/ungodly/launch_pad/keymaps/via/keymap.c b/keyboards/ungodly/launch_pad/keymaps/via/keymap.c index 083bb8b81..0854715be 100644 --- a/keyboards/ungodly/launch_pad/keymaps/via/keymap.c +++ b/keyboards/ungodly/launch_pad/keymaps/via/keymap.c | |||
@@ -273,7 +273,7 @@ static void render_light_logo(void) { | |||
273 | oled_write_raw_P(light_logo, sizeof(light_logo)); | 273 | oled_write_raw_P(light_logo, sizeof(light_logo)); |
274 | } | 274 | } |
275 | 275 | ||
276 | void oled_task_user(void) { | 276 | bool oled_task_user(void) { |
277 | switch (get_highest_layer(layer_state)) { | 277 | switch (get_highest_layer(layer_state)) { |
278 | case 0: | 278 | case 0: |
279 | render_rocket_logo(); | 279 | render_rocket_logo(); |
@@ -289,5 +289,6 @@ void oled_task_user(void) { | |||
289 | oled_write_ln_P(PSTR(" UND"), false); | 289 | oled_write_ln_P(PSTR(" UND"), false); |
290 | break; | 290 | break; |
291 | } | 291 | } |
292 | return false; | ||
292 | } | 293 | } |
293 | #endif | 294 | #endif |
diff --git a/keyboards/ungodly/launch_pad/keymaps/warzone/keymap.c b/keyboards/ungodly/launch_pad/keymaps/warzone/keymap.c index 4f856b977..63f142d91 100644 --- a/keyboards/ungodly/launch_pad/keymaps/warzone/keymap.c +++ b/keyboards/ungodly/launch_pad/keymaps/warzone/keymap.c | |||
@@ -249,7 +249,7 @@ static void render_light_logo(void) { | |||
249 | oled_write_raw_P(light_logo, sizeof(light_logo)); | 249 | oled_write_raw_P(light_logo, sizeof(light_logo)); |
250 | } | 250 | } |
251 | 251 | ||
252 | void oled_task_user(void) { | 252 | bool oled_task_user(void) { |
253 | switch (get_highest_layer(layer_state)) { | 253 | switch (get_highest_layer(layer_state)) { |
254 | case 0: | 254 | case 0: |
255 | render_rocket_logo(); | 255 | render_rocket_logo(); |
@@ -265,5 +265,6 @@ void oled_task_user(void) { | |||
265 | oled_write_ln_P(PSTR(" UND"), false); | 265 | oled_write_ln_P(PSTR(" UND"), false); |
266 | break; | 266 | break; |
267 | } | 267 | } |
268 | return false; | ||
268 | } | 269 | } |
269 | #endif | 270 | #endif |
diff --git a/keyboards/uzu42/keymaps/default/keymap.c b/keyboards/uzu42/keymaps/default/keymap.c index 54b944b24..fbed8b063 100644 --- a/keyboards/uzu42/keymaps/default/keymap.c +++ b/keyboards/uzu42/keymaps/default/keymap.c | |||
@@ -197,7 +197,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
197 | return rotation; | 197 | return rotation; |
198 | } | 198 | } |
199 | 199 | ||
200 | void oled_task_user(void) { | 200 | bool oled_task_user(void) { |
201 | if (is_keyboard_master()) { | 201 | if (is_keyboard_master()) { |
202 | // If you want to change the display of OLED, you need to change here | 202 | // If you want to change the display of OLED, you need to change here |
203 | oled_write_ln(read_layer_state(), false); | 203 | oled_write_ln(read_layer_state(), false); |
@@ -209,6 +209,7 @@ void oled_task_user(void) { | |||
209 | } else { | 209 | } else { |
210 | oled_write(read_logo(), false); | 210 | oled_write(read_logo(), false); |
211 | } | 211 | } |
212 | return false; | ||
212 | } | 213 | } |
213 | #endif // OLED_ENABLE | 214 | #endif // OLED_ENABLE |
214 | 215 | ||
diff --git a/keyboards/work_louder/work_board/work_board.c b/keyboards/work_louder/work_board/work_board.c index a2722a055..7a8edc1a9 100644 --- a/keyboards/work_louder/work_board/work_board.c +++ b/keyboards/work_louder/work_board/work_board.c | |||
@@ -34,9 +34,14 @@ bool encoder_update_kb(uint8_t index, bool clockwise) { | |||
34 | # ifdef RGB_MATRIX_ENABLE | 34 | # ifdef RGB_MATRIX_ENABLE |
35 | # error Cannot run OLED and Per Key RGB at the same time due to pin conflicts | 35 | # error Cannot run OLED and Per Key RGB at the same time due to pin conflicts |
36 | # endif | 36 | # endif |
37 | __attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_90; } | 37 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
38 | return OLED_ROTATION_90; | ||
39 | } | ||
38 | 40 | ||
39 | __attribute__((weak)) void oled_task_user(void) { | 41 | bool oled_task_kb(void) { |
42 | if (!oled_task_user()) { | ||
43 | return false; | ||
44 | } | ||
40 | oled_write_P(PSTR("LAYER"), false); | 45 | oled_write_P(PSTR("LAYER"), false); |
41 | oled_write_P(PSTR("Lower"), layer_state_is(3)); | 46 | oled_write_P(PSTR("Lower"), layer_state_is(3)); |
42 | oled_write_P(PSTR("Raise"), layer_state_is(4)); | 47 | oled_write_P(PSTR("Raise"), layer_state_is(4)); |
@@ -70,6 +75,8 @@ __attribute__((weak)) void oled_task_user(void) { | |||
70 | oled_write_P(logo[0][1], !keymap_config.swap_lctl_lgui); | 75 | oled_write_P(logo[0][1], !keymap_config.swap_lctl_lgui); |
71 | oled_write_P(logo[1][1], keymap_config.swap_lctl_lgui); | 76 | oled_write_P(logo[1][1], keymap_config.swap_lctl_lgui); |
72 | oled_write_P(PSTR(" NKRO"), keymap_config.nkro); | 77 | oled_write_P(PSTR(" NKRO"), keymap_config.nkro); |
78 | |||
79 | return false; | ||
73 | } | 80 | } |
74 | #endif | 81 | #endif |
75 | 82 | ||
diff --git a/keyboards/yampad/keymaps/default/keymap.c b/keyboards/yampad/keymaps/default/keymap.c index d22eb2617..51d921be3 100644 --- a/keyboards/yampad/keymaps/default/keymap.c +++ b/keyboards/yampad/keymaps/default/keymap.c | |||
@@ -122,7 +122,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
122 | return OLED_ROTATION_270; // flips the display 270 degrees | 122 | return OLED_ROTATION_270; // flips the display 270 degrees |
123 | } | 123 | } |
124 | 124 | ||
125 | void oled_task_user(void) { | 125 | bool oled_task_user(void) { |
126 | // Host Keyboard Layer Status | 126 | // Host Keyboard Layer Status |
127 | oled_write_P(PSTR("Layer"), false); | 127 | oled_write_P(PSTR("Layer"), false); |
128 | switch (get_highest_layer(layer_state)) { | 128 | switch (get_highest_layer(layer_state)) { |
@@ -159,5 +159,7 @@ void oled_task_user(void) { | |||
159 | (uint8_t)(rgblight_get_sat() / RGBLIGHT_SAT_STEP), | 159 | (uint8_t)(rgblight_get_sat() / RGBLIGHT_SAT_STEP), |
160 | (uint8_t)(rgblight_get_val() / RGBLIGHT_VAL_STEP)); | 160 | (uint8_t)(rgblight_get_val() / RGBLIGHT_VAL_STEP)); |
161 | oled_write(led_buf, false); | 161 | oled_write(led_buf, false); |
162 | |||
163 | return false; | ||
162 | } | 164 | } |
163 | #endif | 165 | #endif |
diff --git a/keyboards/yampad/keymaps/traditional/keymap.c b/keyboards/yampad/keymaps/traditional/keymap.c index 57462c050..78778cc34 100644 --- a/keyboards/yampad/keymaps/traditional/keymap.c +++ b/keyboards/yampad/keymaps/traditional/keymap.c | |||
@@ -122,7 +122,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
122 | return OLED_ROTATION_270; // flips the display 270 degrees | 122 | return OLED_ROTATION_270; // flips the display 270 degrees |
123 | } | 123 | } |
124 | 124 | ||
125 | void oled_task_user(void) { | 125 | bool oled_task_user(void) { |
126 | // Host Keyboard Layer Status | 126 | // Host Keyboard Layer Status |
127 | oled_write_P(PSTR("Layer"), false); | 127 | oled_write_P(PSTR("Layer"), false); |
128 | switch (get_highest_layer(layer_state)) { | 128 | switch (get_highest_layer(layer_state)) { |
@@ -159,5 +159,7 @@ void oled_task_user(void) { | |||
159 | (uint8_t)(rgblight_get_sat() / RGBLIGHT_SAT_STEP), | 159 | (uint8_t)(rgblight_get_sat() / RGBLIGHT_SAT_STEP), |
160 | (uint8_t)(rgblight_get_val() / RGBLIGHT_VAL_STEP)); | 160 | (uint8_t)(rgblight_get_val() / RGBLIGHT_VAL_STEP)); |
161 | oled_write(led_buf, false); | 161 | oled_write(led_buf, false); |
162 | |||
163 | return false; | ||
162 | } | 164 | } |
163 | #endif | 165 | #endif |
diff --git a/keyboards/yampad/keymaps/via/keymap.c b/keyboards/yampad/keymaps/via/keymap.c index d22eb2617..51d921be3 100644 --- a/keyboards/yampad/keymaps/via/keymap.c +++ b/keyboards/yampad/keymaps/via/keymap.c | |||
@@ -122,7 +122,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
122 | return OLED_ROTATION_270; // flips the display 270 degrees | 122 | return OLED_ROTATION_270; // flips the display 270 degrees |
123 | } | 123 | } |
124 | 124 | ||
125 | void oled_task_user(void) { | 125 | bool oled_task_user(void) { |
126 | // Host Keyboard Layer Status | 126 | // Host Keyboard Layer Status |
127 | oled_write_P(PSTR("Layer"), false); | 127 | oled_write_P(PSTR("Layer"), false); |
128 | switch (get_highest_layer(layer_state)) { | 128 | switch (get_highest_layer(layer_state)) { |
@@ -159,5 +159,7 @@ void oled_task_user(void) { | |||
159 | (uint8_t)(rgblight_get_sat() / RGBLIGHT_SAT_STEP), | 159 | (uint8_t)(rgblight_get_sat() / RGBLIGHT_SAT_STEP), |
160 | (uint8_t)(rgblight_get_val() / RGBLIGHT_VAL_STEP)); | 160 | (uint8_t)(rgblight_get_val() / RGBLIGHT_VAL_STEP)); |
161 | oled_write(led_buf, false); | 161 | oled_write(led_buf, false); |
162 | |||
163 | return false; | ||
162 | } | 164 | } |
163 | #endif | 165 | #endif |
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)) | 20 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
21 | oled_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)) | 24 | bool oled_task_kb(void) { |
26 | void 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 |
diff --git a/keyboards/z12/keymaps/zigotica/oled.c b/keyboards/z12/keymaps/zigotica/oled.c index 4b428a42b..fa11a3d6c 100644 --- a/keyboards/z12/keymaps/zigotica/oled.c +++ b/keyboards/z12/keymaps/zigotica/oled.c | |||
@@ -37,7 +37,7 @@ static void render_status(void) { | |||
37 | } | 37 | } |
38 | } | 38 | } |
39 | 39 | ||
40 | void oled_task_user(void) { | 40 | bool oled_task_user(void) { |
41 | render_status(); | 41 | render_status(); |
42 | return false; | ||
42 | } | 43 | } |
43 | |||
diff --git a/keyboards/zoo/wampus/wampus.c b/keyboards/zoo/wampus/wampus.c index 350d47a3e..aa41c2710 100644 --- a/keyboards/zoo/wampus/wampus.c +++ b/keyboards/zoo/wampus/wampus.c | |||
@@ -22,8 +22,7 @@ void board_init(void) { | |||
22 | SYSCFG->CFGR1 &= ~(SYSCFG_CFGR1_SPI2_DMA_RMP); | 22 | SYSCFG->CFGR1 &= ~(SYSCFG_CFGR1_SPI2_DMA_RMP); |
23 | } | 23 | } |
24 | 24 | ||
25 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 25 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
26 | return OLED_ROTATION_180; | 26 | return OLED_ROTATION_180; |
27 | } | 27 | } |
28 | |||
29 | #endif | 28 | #endif |
diff --git a/users/curry/oled.c b/users/curry/oled.c index fc87a46e5..27f6072ff 100644 --- a/users/curry/oled.c +++ b/users/curry/oled.c | |||
@@ -137,7 +137,7 @@ void render_status_secondary(void) { | |||
137 | render_keylogger_status(); | 137 | render_keylogger_status(); |
138 | } | 138 | } |
139 | 139 | ||
140 | void oled_task_user(void) { | 140 | bool oled_task_user(void) { |
141 | if (timer_elapsed32(oled_timer) > 30000) { | 141 | if (timer_elapsed32(oled_timer) > 30000) { |
142 | oled_off(); | 142 | oled_off(); |
143 | return; | 143 | return; |
@@ -152,6 +152,7 @@ void oled_task_user(void) { | |||
152 | } else { | 152 | } else { |
153 | render_status_secondary(); | 153 | render_status_secondary(); |
154 | } | 154 | } |
155 | return false; | ||
155 | } | 156 | } |
156 | 157 | ||
157 | bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | 158 | bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { |
diff --git a/users/drashna/oled_stuff.c b/users/drashna/oled_stuff.c index 4b5491950..7ccdfc98a 100644 --- a/users/drashna/oled_stuff.c +++ b/users/drashna/oled_stuff.c | |||
@@ -421,7 +421,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { | |||
421 | return oled_init_keymap(rotation); | 421 | return oled_init_keymap(rotation); |
422 | } | 422 | } |
423 | 423 | ||
424 | void oled_task_user(void) { | 424 | bool oled_task_user(void) { |
425 | update_log(); | 425 | update_log(); |
426 | 426 | ||
427 | if (is_keyboard_master()) { | 427 | if (is_keyboard_master()) { |
@@ -442,4 +442,5 @@ void oled_task_user(void) { | |||
442 | } else { | 442 | } else { |
443 | render_keylock_status(host_keyboard_leds()); | 443 | render_keylock_status(host_keyboard_leds()); |
444 | } | 444 | } |
445 | return false; | ||
445 | } | 446 | } |
diff --git a/users/ninjonas/oled.c b/users/ninjonas/oled.c index 1d88c3057..55eaf88cc 100644 --- a/users/ninjonas/oled.c +++ b/users/ninjonas/oled.c | |||
@@ -90,7 +90,7 @@ static void render_logo(void) { | |||
90 | oled_write_P(qmk_logo, false); | 90 | oled_write_P(qmk_logo, false); |
91 | } | 91 | } |
92 | 92 | ||
93 | void oled_task_user(void) { | 93 | bool oled_task_user(void) { |
94 | if (timer_elapsed32(oled_timer) > 15000) { | 94 | if (timer_elapsed32(oled_timer) > 15000) { |
95 | oled_off(); | 95 | oled_off(); |
96 | return; | 96 | return; |
@@ -106,6 +106,7 @@ void oled_task_user(void) { | |||
106 | oled_write_P(PSTR("\n"), false); | 106 | oled_write_P(PSTR("\n"), false); |
107 | oled_scroll_left(); | 107 | oled_scroll_left(); |
108 | } | 108 | } |
109 | return false; | ||
109 | } | 110 | } |
110 | 111 | ||
111 | #endif | 112 | #endif |
diff --git a/users/riblee/riblee.c b/users/riblee/riblee.c index 04e37b242..307c69720 100644 --- a/users/riblee/riblee.c +++ b/users/riblee/riblee.c | |||
@@ -245,10 +245,9 @@ static void render_info(void) { | |||
245 | } | 245 | } |
246 | 246 | ||
247 | // Print string received via HID RAW | 247 | // Print string received via HID RAW |
248 | oled_write_ln(receive_buffer, false); | 248 | oled_write_ln(receive_buffer, false);} |
249 | } | ||
250 | 249 | ||
251 | void oled_task_user(void) { | 250 | bool oled_task_user(void) { |
252 | static bool finished_timer = false; | 251 | static bool finished_timer = false; |
253 | if (!finished_timer && (timer_elapsed(startup_timer) < 1000)) { | 252 | if (!finished_timer && (timer_elapsed(startup_timer) < 1000)) { |
254 | render_logo(); | 253 | render_logo(); |
@@ -259,6 +258,8 @@ void oled_task_user(void) { | |||
259 | } | 258 | } |
260 | render_info(); | 259 | render_info(); |
261 | } | 260 | } |
261 | return false; | ||
262 | |||
262 | } | 263 | } |
263 | 264 | ||
264 | #ifdef RAW_ENABLE | 265 | #ifdef RAW_ENABLE |
diff --git a/users/snowe/oled_setup.c b/users/snowe/oled_setup.c index 3d21ea9f0..dfc4b085e 100644 --- a/users/snowe/oled_setup.c +++ b/users/snowe/oled_setup.c | |||
@@ -121,7 +121,7 @@ void render_bootmagic_status(void) { | |||
121 | oled_write_ln(wpm, false); | 121 | oled_write_ln(wpm, false); |
122 | } | 122 | } |
123 | 123 | ||
124 | void oled_task_user(void) { | 124 | bool oled_task_user(void) { |
125 | if (is_master) { | 125 | if (is_master) { |
126 | oled_render_layer_state(); | 126 | oled_render_layer_state(); |
127 | oled_render_keylog(); | 127 | oled_render_keylog(); |
@@ -136,6 +136,7 @@ void oled_task_user(void) { | |||
136 | render_stars(); | 136 | render_stars(); |
137 | # endif | 137 | # endif |
138 | } | 138 | } |
139 | return false; | ||
139 | } | 140 | } |
140 | 141 | ||
141 | #endif // OLED_ENABLE | 142 | #endif // OLED_ENABLE |
diff --git a/users/tominabox1/tominabox1.c b/users/tominabox1/tominabox1.c index e48959be9..7322ead0d 100644 --- a/users/tominabox1/tominabox1.c +++ b/users/tominabox1/tominabox1.c | |||
@@ -262,7 +262,7 @@ void render_status_main(void) { | |||
262 | __attribute__ ((weak)) | 262 | __attribute__ ((weak)) |
263 | void oled_task_keymap(void) {} | 263 | void oled_task_keymap(void) {} |
264 | 264 | ||
265 | void oled_task_user(void) { | 265 | bool oled_task_user(void) { |
266 | 266 | ||
267 | if (timer_elapsed(oled_timer) > 20000) { | 267 | if (timer_elapsed(oled_timer) > 20000) { |
268 | oled_off(); | 268 | oled_off(); |
@@ -275,6 +275,7 @@ void oled_task_user(void) { | |||
275 | oled_scroll_left(); | 275 | oled_scroll_left(); |
276 | } | 276 | } |
277 | oled_task_keymap(); | 277 | oled_task_keymap(); |
278 | return false; | ||
278 | } | 279 | } |
279 | 280 | ||
280 | #endif // OLED_Driver | 281 | #endif // OLED_Driver |
diff --git a/users/xulkal/custom_oled.c b/users/xulkal/custom_oled.c index 4ed2b9a0b..7fe804092 100644 --- a/users/xulkal/custom_oled.c +++ b/users/xulkal/custom_oled.c | |||
@@ -176,7 +176,7 @@ static void render_status(void) | |||
176 | 176 | ||
177 | #endif // OLED_90ROTATION | 177 | #endif // OLED_90ROTATION |
178 | 178 | ||
179 | void oled_task_user(void) | 179 | bool oled_task_user(void) |
180 | { | 180 | { |
181 | if (is_keyboard_master()) | 181 | if (is_keyboard_master()) |
182 | render_status(); | 182 | render_status(); |
@@ -185,4 +185,5 @@ void oled_task_user(void) | |||
185 | render_logo(); | 185 | render_logo(); |
186 | oled_scroll_left(); | 186 | oled_scroll_left(); |
187 | } | 187 | } |
188 | return false; | ||
188 | } | 189 | } |