[Core] Refactor OLED to allow easy addition of other types (#13454)
* add docs * core changes * update keyboards to new OLED * updated users to new OLED * update layouts to new OLED * fixup docs * drashna's suggestion * fix up docs * new keyboards with oled * core split changes * remaining keyboard files * Fix The Helix keyboards oled options * reflect develop Co-authored-by: Drashna Jaelre <[email protected]> Co-authored-by: mtei <[email protected]>
This commit is contained in:
500 files changed
+1579
-1387
No files matched your search
+10
-10
@@ -2,7 +2,7 @@
|
||||
#include <stdio.h>
|
||||
#include "ninjonas.h"
|
||||
|
||||
#if defined(OLED_DRIVER_ENABLE) & !defined(KEYBOARD_kyria_rev1)
|
||||
#if defined(OLED_ENABLE) & !defined(KEYBOARD_kyria_rev1)
|
||||
|
||||
static uint32_t oled_timer = 0;
|
||||
|
||||
@@ -49,16 +49,16 @@ void render_layer_state(void) {
|
||||
bool adjust = layer_state_is(_ADJUST);
|
||||
bool numpad = layer_state_is(_NUMPAD);
|
||||
|
||||
if(lower){
|
||||
oled_write_P(PSTR(" Lower "), true);
|
||||
} else if(raise){
|
||||
oled_write_P(PSTR(" Raise "), true);
|
||||
} else if(adjust){
|
||||
oled_write_P(PSTR(" Adjust "), true);
|
||||
if(lower){
|
||||
oled_write_P(PSTR(" Lower "), true);
|
||||
} else if(raise){
|
||||
oled_write_P(PSTR(" Raise "), true);
|
||||
} else if(adjust){
|
||||
oled_write_P(PSTR(" Adjust "), true);
|
||||
} else if(numpad) {
|
||||
oled_write_P(PSTR(" Numpad "), true);
|
||||
} else {
|
||||
oled_write_P(PSTR(" Default"), false);
|
||||
oled_write_P(PSTR(" Numpad "), true);
|
||||
} else {
|
||||
oled_write_P(PSTR(" Default"), false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user