[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 <drashna@live.com>
Co-authored-by: mtei <2170248+mtei@users.noreply.github.com>
This commit is contained in:
Xelus22
2021-08-24 16:28:26 +10:00
committed by GitHub
parent 6fd20acf4b
commit 4e1c5887c5
500 changed files with 1579 additions and 1387 deletions

View File

@@ -19,23 +19,23 @@ char wpm_str[4];
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
KC_ESC, KC_GRV, TO(1),
KC_Z, KC_X, KC_C ),
[1] = LAYOUT(
KC_TRNS, KC_TRNS, TO(0),
KC_TRNS, KC_TRNS, KC_TRNS ),
[2] = LAYOUT(
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS ),
[3] = LAYOUT(
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS ),
};
@@ -43,10 +43,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// based on https://github.com/qmk/qmk_firmware/blob/master/keyboards/kyria/keymaps/j-inc/keymap.c
// In your rules.mk make sure you have:
// OLED_DRIVER_ENABLE = yes
// OLED_ENABLE = yes
// WPM_ENABLE = yes
#ifdef OLED_DRIVER_ENABLE
#ifdef OLED_ENABLE
// WPM-responsive animation stuff here
# define IDLE_FRAMES 5
# define IDLE_SPEED 20 // below this wpm value your animation will idle
@@ -161,4 +161,4 @@ void oled_task_user(void) {
oled_set_cursor(0, 1);
oled_write_P(led_state.caps_lock ? PSTR("CAPS") : PSTR(" "), false);
}
#endif
#endif

View File

@@ -1,5 +1,5 @@
VIA_ENABLE = yes
OLED_DRIVER_ENABLE = no
OLED_ENABLE = no
WPM_ENABLE = no
RGBLIGHT_ENABLE = yes
LTO_ENABLE = no
LTO_ENABLE = no