[Core] Change OLED task function to be boolean (#14864)

* [Core] Add kb level callbacks to OLED driver

* Update keyboards and keymaps

* Update docs

* Update userspace configs

* Add fix for my keymap ...

* update lefty
This commit is contained in:
Drashna Jaelre
2021-11-01 15:42:50 -07:00
committed by GitHub
parent f775da96b1
commit 9d235d4fc5
272 changed files with 967 additions and 599 deletions

View File

@@ -274,7 +274,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
// OLED Display
#ifdef OLED_ENABLE
void oled_task_user(void) {
bool oled_task_user(void) {
// get layer Number
uint8_t currentDefault = get_highest_layer(default_layer_state);
uint8_t currentLayer = get_highest_layer(layer_state);
@@ -326,5 +326,6 @@ void oled_task_user(void) {
// pressed key / 4th line of the logo
render_row(3, " ");
}
return false;
}
#endif // #ifdef OLED_ENABLE

View File

@@ -142,10 +142,11 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
// OLED Display
#ifdef OLED_ENABLE
void oled_task_user(void) {
bool oled_task_user(void) {
render_row(0, "TEST");
render_row(1, "test");
render_row(2, "TEST");
render_row(3, "test");
return false;
}
#endif // #ifdef OLED_ENABLE

View File

@@ -17,7 +17,7 @@
// initialize OLED if OLED is enabled
#ifdef OLED_ENABLE
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
oled_rotation_t oled_init_kb(oled_rotation_t rotation) {
return OLED_ROTATION_180;
}
}
#endif