diff options
| author | Xelus22 <17491233+Xelus22@users.noreply.github.com> | 2021-08-24 16:28:26 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-24 16:28:26 +1000 |
| commit | 4e1c5887c5c08ebd2cf7868c8d9292aa728e7bf0 (patch) | |
| tree | 24ff5bdf570a6a9f5a77a517005bffbb35e46b22 /users | |
| parent | 6fd20acf4be76e7a2bd82d3dfd0a9bcca8c507eb (diff) | |
| download | qmk_firmware-4e1c5887c5c08ebd2cf7868c8d9292aa728e7bf0.tar.gz qmk_firmware-4e1c5887c5c08ebd2cf7868c8d9292aa728e7bf0.zip | |
[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>
Diffstat (limited to 'users')
| -rw-r--r-- | users/curry/rules.mk | 2 | ||||
| -rw-r--r-- | users/drashna/config.h | 2 | ||||
| -rw-r--r-- | users/drashna/drashna.c | 5 | ||||
| -rw-r--r-- | users/drashna/drashna.h | 2 | ||||
| -rw-r--r-- | users/drashna/oled_stuff.c | 2 | ||||
| -rw-r--r-- | users/drashna/process_records.c | 2 | ||||
| -rw-r--r-- | users/drashna/rules.mk | 2 | ||||
| -rw-r--r-- | users/drashna/transport_sync.c | 11 | ||||
| -rw-r--r-- | users/ninjonas/oled.c | 20 | ||||
| -rw-r--r-- | users/ninjonas/process_records.c | 4 | ||||
| -rw-r--r-- | users/ninjonas/process_records.h | 2 | ||||
| -rw-r--r-- | users/riblee/riblee.c | 4 | ||||
| -rw-r--r-- | users/sethBarberee/sethBarberee.c | 2 | ||||
| -rw-r--r-- | users/snowe/oled_setup.c | 4 | ||||
| -rw-r--r-- | users/snowe/oled_setup.h | 4 | ||||
| -rw-r--r-- | users/snowe/readme_ocean_dream.md | 5 | ||||
| -rw-r--r-- | users/snowe/rules.mk | 2 | ||||
| -rw-r--r-- | users/snowe/snowe.h | 2 | ||||
| -rw-r--r-- | users/tominabox1/rules.mk | 3 | ||||
| -rw-r--r-- | users/tominabox1/tominabox1.c | 6 | ||||
| -rw-r--r-- | users/xulkal/rules.mk | 2 |
21 files changed, 51 insertions, 37 deletions
diff --git a/users/curry/rules.mk b/users/curry/rules.mk index 87d3b38ea..724f97f5e 100644 --- a/users/curry/rules.mk +++ b/users/curry/rules.mk | |||
| @@ -24,7 +24,7 @@ ifeq ($(strip $(TAP_DANCE_ENABLE)), yes) | |||
| 24 | SRC += tap_dances.c | 24 | SRC += tap_dances.c |
| 25 | endif | 25 | endif |
| 26 | 26 | ||
| 27 | ifeq ($(strip $(OLED_DRIVER_ENABLE)), yes) | 27 | ifeq ($(strip $(OLED_ENABLE)), yes) |
| 28 | SRC += oled.c | 28 | SRC += oled.c |
| 29 | endif | 29 | endif |
| 30 | 30 | ||
diff --git a/users/drashna/config.h b/users/drashna/config.h index c8007a61b..75e1c11c6 100644 --- a/users/drashna/config.h +++ b/users/drashna/config.h | |||
| @@ -140,7 +140,7 @@ | |||
| 140 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_REST_MODE | 140 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_REST_MODE |
| 141 | #endif // RGB_MATRIX_ENABLE | 141 | #endif // RGB_MATRIX_ENABLE |
| 142 | 142 | ||
| 143 | #ifdef OLED_DRIVER_ENABLE | 143 | #ifdef OLED_ENABLE |
| 144 | # ifdef SPLIT_KEYBOARD | 144 | # ifdef SPLIT_KEYBOARD |
| 145 | # define OLED_UPDATE_INTERVAL 60 | 145 | # define OLED_UPDATE_INTERVAL 60 |
| 146 | # else | 146 | # else |
diff --git a/users/drashna/drashna.c b/users/drashna/drashna.c index 27b9b5bc9..13421f39d 100644 --- a/users/drashna/drashna.c +++ b/users/drashna/drashna.c | |||
| @@ -114,8 +114,9 @@ void shutdown_user(void) { | |||
| 114 | } | 114 | } |
| 115 | 115 | ||
| 116 | __attribute__((weak)) void suspend_power_down_keymap(void) {} | 116 | __attribute__((weak)) void suspend_power_down_keymap(void) {} |
| 117 | void suspend_power_down_user(void) { | 117 | |
| 118 | #ifdef OLED_DRIVER_ENABLE | 118 | void suspend_power_down_user(void) { |
| 119 | #ifdef OLED_ENABLE | ||
| 119 | oled_off(); | 120 | oled_off(); |
| 120 | #endif | 121 | #endif |
| 121 | suspend_power_down_keymap(); | 122 | suspend_power_down_keymap(); |
diff --git a/users/drashna/drashna.h b/users/drashna/drashna.h index 0ae5f779a..a1fa3ffa9 100644 --- a/users/drashna/drashna.h +++ b/users/drashna/drashna.h | |||
| @@ -29,7 +29,7 @@ | |||
| 29 | #if defined(RGB_MATRIX_ENABLE) | 29 | #if defined(RGB_MATRIX_ENABLE) |
| 30 | # include "rgb_matrix_stuff.h" | 30 | # include "rgb_matrix_stuff.h" |
| 31 | #endif | 31 | #endif |
| 32 | #if defined(OLED_DRIVER_ENABLE) | 32 | #if defined(OLED_ENABLE) |
| 33 | # include "oled_stuff.h" | 33 | # include "oled_stuff.h" |
| 34 | #endif | 34 | #endif |
| 35 | #if defined(PIMORONI_TRACKBALL_ENABLE) | 35 | #if defined(PIMORONI_TRACKBALL_ENABLE) |
diff --git a/users/drashna/oled_stuff.c b/users/drashna/oled_stuff.c index 0d63c38fa..debcdcfbe 100644 --- a/users/drashna/oled_stuff.c +++ b/users/drashna/oled_stuff.c | |||
| @@ -70,7 +70,7 @@ void add_keylog(uint16_t keycode) { | |||
| 70 | 70 | ||
| 71 | bool process_record_user_oled(uint16_t keycode, keyrecord_t *record) { | 71 | bool process_record_user_oled(uint16_t keycode, keyrecord_t *record) { |
| 72 | if (record->event.pressed) { | 72 | if (record->event.pressed) { |
| 73 | #ifdef OLED_DRIVER_ENABLE | 73 | #ifdef OLED_ENABLE |
| 74 | oled_timer = timer_read32(); | 74 | oled_timer = timer_read32(); |
| 75 | add_keylog(keycode); | 75 | add_keylog(keycode); |
| 76 | #endif | 76 | #endif |
diff --git a/users/drashna/process_records.c b/users/drashna/process_records.c index f5e6a867a..900b6da15 100644 --- a/users/drashna/process_records.c +++ b/users/drashna/process_records.c | |||
| @@ -29,7 +29,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *re | |||
| 29 | #ifdef KEYLOGGER_ENABLE | 29 | #ifdef KEYLOGGER_ENABLE |
| 30 | uprintf("KL: kc: 0x%04X, col: %2u, row: %2u, pressed: %b, time: %5u, int: %b, count: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed, record->event.time, record->tap.interrupted, record->tap.count); | 30 | uprintf("KL: kc: 0x%04X, col: %2u, row: %2u, pressed: %b, time: %5u, int: %b, count: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed, record->event.time, record->tap.interrupted, record->tap.count); |
| 31 | #endif // KEYLOGGER_ENABLE | 31 | #endif // KEYLOGGER_ENABLE |
| 32 | #ifdef OLED_DRIVER_ENABLE | 32 | #ifdef OLED_ENABLE |
| 33 | process_record_user_oled(keycode, record); | 33 | process_record_user_oled(keycode, record); |
| 34 | #endif // OLED | 34 | #endif // OLED |
| 35 | 35 | ||
diff --git a/users/drashna/rules.mk b/users/drashna/rules.mk index 02a75a7b7..dbacae1d5 100644 --- a/users/drashna/rules.mk +++ b/users/drashna/rules.mk | |||
| @@ -64,7 +64,7 @@ ifeq ($(strip $(PROTOCOL)), VUSB) | |||
| 64 | endif | 64 | endif |
| 65 | 65 | ||
| 66 | CUSTOM_OLED_DRIVER ?= yes | 66 | CUSTOM_OLED_DRIVER ?= yes |
| 67 | ifeq ($(strip $(OLED_DRIVER_ENABLE)), yes) | 67 | ifeq ($(strip $(OLED_ENABLE)), yes) |
| 68 | ifeq ($(strip $(CUSTOM_OLED_DRIVER)), yes) | 68 | ifeq ($(strip $(CUSTOM_OLED_DRIVER)), yes) |
| 69 | SRC += oled_stuff.c | 69 | SRC += oled_stuff.c |
| 70 | OPT_DEFS += -DCUSTOM_OLED_DRIVER_CODE | 70 | OPT_DEFS += -DCUSTOM_OLED_DRIVER_CODE |
diff --git a/users/drashna/transport_sync.c b/users/drashna/transport_sync.c index fdd596c04..38434751e 100644 --- a/users/drashna/transport_sync.c +++ b/users/drashna/transport_sync.c | |||
| @@ -71,6 +71,10 @@ void keyboard_post_init_transport_sync(void) { | |||
| 71 | 71 | ||
| 72 | void user_transport_update(void) { | 72 | void user_transport_update(void) { |
| 73 | if (is_keyboard_master()) { | 73 | if (is_keyboard_master()) { |
| 74 | # ifdef OLED_ENABLE | ||
| 75 | user_state.oled_on = is_oled_on(); | ||
| 76 | # endif | ||
| 77 | |||
| 74 | transport_keymap_config = keymap_config.raw; | 78 | transport_keymap_config = keymap_config.raw; |
| 75 | transport_userspace_config = userspace_config.raw; | 79 | transport_userspace_config = userspace_config.raw; |
| 76 | #ifdef AUDIO_ENABLE | 80 | #ifdef AUDIO_ENABLE |
| @@ -85,6 +89,13 @@ void user_transport_update(void) { | |||
| 85 | #endif | 89 | #endif |
| 86 | 90 | ||
| 87 | } else { | 91 | } else { |
| 92 | # ifdef OLED_ENABLE | ||
| 93 | if (user_state.oled_on) { | ||
| 94 | oled_on(); | ||
| 95 | } else { | ||
| 96 | oled_off(); | ||
| 97 | } | ||
| 98 | # endif | ||
| 88 | keymap_config.raw = transport_keymap_config; | 99 | keymap_config.raw = transport_keymap_config; |
| 89 | userspace_config.raw = transport_userspace_config; | 100 | userspace_config.raw = transport_userspace_config; |
| 90 | #ifdef UNICODE_ENABLE | 101 | #ifdef UNICODE_ENABLE |
diff --git a/users/ninjonas/oled.c b/users/ninjonas/oled.c index a3514f54f..1d88c3057 100644 --- a/users/ninjonas/oled.c +++ b/users/ninjonas/oled.c | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | #include <stdio.h> | 2 | #include <stdio.h> |
| 3 | #include "ninjonas.h" | 3 | #include "ninjonas.h" |
| 4 | 4 | ||
| 5 | #if defined(OLED_DRIVER_ENABLE) & !defined(KEYBOARD_kyria_rev1) | 5 | #if defined(OLED_ENABLE) & !defined(KEYBOARD_kyria_rev1) |
| 6 | 6 | ||
| 7 | static uint32_t oled_timer = 0; | 7 | static uint32_t oled_timer = 0; |
| 8 | 8 | ||
| @@ -49,16 +49,16 @@ void render_layer_state(void) { | |||
| 49 | bool adjust = layer_state_is(_ADJUST); | 49 | bool adjust = layer_state_is(_ADJUST); |
| 50 | bool numpad = layer_state_is(_NUMPAD); | 50 | bool numpad = layer_state_is(_NUMPAD); |
| 51 | 51 | ||
| 52 | if(lower){ | 52 | if(lower){ |
| 53 | oled_write_P(PSTR(" Lower "), true); | 53 | oled_write_P(PSTR(" Lower "), true); |
| 54 | } else if(raise){ | 54 | } else if(raise){ |
| 55 | oled_write_P(PSTR(" Raise "), true); | 55 | oled_write_P(PSTR(" Raise "), true); |
| 56 | } else if(adjust){ | 56 | } else if(adjust){ |
| 57 | oled_write_P(PSTR(" Adjust "), true); | 57 | oled_write_P(PSTR(" Adjust "), true); |
| 58 | } else if(numpad) { | 58 | } else if(numpad) { |
| 59 | oled_write_P(PSTR(" Numpad "), true); | 59 | oled_write_P(PSTR(" Numpad "), true); |
| 60 | } else { | 60 | } else { |
| 61 | oled_write_P(PSTR(" Default"), false); | 61 | oled_write_P(PSTR(" Default"), false); |
| 62 | } | 62 | } |
| 63 | } | 63 | } |
| 64 | 64 | ||
diff --git a/users/ninjonas/process_records.c b/users/ninjonas/process_records.c index a3b841791..c298227e5 100644 --- a/users/ninjonas/process_records.c +++ b/users/ninjonas/process_records.c | |||
| @@ -6,7 +6,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { return true; | |||
| 6 | __attribute__((weak)) | 6 | __attribute__((weak)) |
| 7 | bool process_record_secrets(uint16_t keycode, keyrecord_t *record) { return true; } | 7 | bool process_record_secrets(uint16_t keycode, keyrecord_t *record) { return true; } |
| 8 | 8 | ||
| 9 | #ifdef OLED_DRIVER_ENABLE | 9 | #ifdef OLED_ENABLE |
| 10 | __attribute__((weak)) | 10 | __attribute__((weak)) |
| 11 | bool process_record_oled(uint16_t keycode, keyrecord_t *record) { return true; } | 11 | bool process_record_oled(uint16_t keycode, keyrecord_t *record) { return true; } |
| 12 | #endif | 12 | #endif |
| @@ -110,7 +110,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | return process_record_keymap(keycode, record) && process_record_secrets(keycode, record) | 112 | return process_record_keymap(keycode, record) && process_record_secrets(keycode, record) |
| 113 | #ifdef OLED_DRIVER_ENABLE | 113 | #ifdef OLED_ENABLE |
| 114 | && process_record_oled(keycode, record) | 114 | && process_record_oled(keycode, record) |
| 115 | #endif | 115 | #endif |
| 116 | ; // Close return | 116 | ; // Close return |
diff --git a/users/ninjonas/process_records.h b/users/ninjonas/process_records.h index 2e69ca216..5b901a165 100644 --- a/users/ninjonas/process_records.h +++ b/users/ninjonas/process_records.h | |||
| @@ -25,6 +25,6 @@ enum custom_keycodes { | |||
| 25 | 25 | ||
| 26 | bool process_record_secrets(uint16_t keycode, keyrecord_t *record); | 26 | bool process_record_secrets(uint16_t keycode, keyrecord_t *record); |
| 27 | bool process_record_keymap(uint16_t keycode, keyrecord_t *record); | 27 | bool process_record_keymap(uint16_t keycode, keyrecord_t *record); |
| 28 | #ifdef OLED_DRIVER_ENABLE | 28 | #ifdef OLED_ENABLE |
| 29 | bool process_record_oled(uint16_t keycode, keyrecord_t *record); | 29 | bool process_record_oled(uint16_t keycode, keyrecord_t *record); |
| 30 | #endif | 30 | #endif |
diff --git a/users/riblee/riblee.c b/users/riblee/riblee.c index 6e548f1d8..6e6a7c23c 100644 --- a/users/riblee/riblee.c +++ b/users/riblee/riblee.c | |||
| @@ -173,7 +173,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 173 | return true; | 173 | return true; |
| 174 | }; | 174 | }; |
| 175 | 175 | ||
| 176 | #ifdef OLED_DRIVER_ENABLE | 176 | #ifdef OLED_ENABLE |
| 177 | 177 | ||
| 178 | static char receive_buffer[128] = {}; | 178 | static char receive_buffer[128] = {}; |
| 179 | static uint8_t receive_buffer_length = 0; | 179 | static uint8_t receive_buffer_length = 0; |
| @@ -227,4 +227,4 @@ void raw_hid_receive(uint8_t *data, uint8_t length) { | |||
| 227 | 227 | ||
| 228 | #endif | 228 | #endif |
| 229 | 229 | ||
| 230 | #endif \ No newline at end of file | 230 | #endif |
diff --git a/users/sethBarberee/sethBarberee.c b/users/sethBarberee/sethBarberee.c index 536f3f921..c5fceee68 100644 --- a/users/sethBarberee/sethBarberee.c +++ b/users/sethBarberee/sethBarberee.c | |||
| @@ -58,7 +58,7 @@ void keyboard_post_init_user(void) | |||
| 58 | __attribute__((weak)) void suspend_power_down_keymap(void) {} | 58 | __attribute__((weak)) void suspend_power_down_keymap(void) {} |
| 59 | 59 | ||
| 60 | void suspend_power_down_user(void) { | 60 | void suspend_power_down_user(void) { |
| 61 | #ifdef OLED_DRIVER_ENABLE | 61 | #ifdef OLED_ENABLE |
| 62 | oled_off(); | 62 | oled_off(); |
| 63 | #endif | 63 | #endif |
| 64 | suspend_power_down_keymap(); | 64 | suspend_power_down_keymap(); |
diff --git a/users/snowe/oled_setup.c b/users/snowe/oled_setup.c index b3e04df45..3d21ea9f0 100644 --- a/users/snowe/oled_setup.c +++ b/users/snowe/oled_setup.c | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ | 17 | */ |
| 18 | 18 | ||
| 19 | #ifdef OLED_DRIVER_ENABLE | 19 | #ifdef OLED_ENABLE |
| 20 | 20 | ||
| 21 | # include QMK_KEYBOARD_H | 21 | # include QMK_KEYBOARD_H |
| 22 | # include "quantum.h" | 22 | # include "quantum.h" |
| @@ -138,4 +138,4 @@ void oled_task_user(void) { | |||
| 138 | } | 138 | } |
| 139 | } | 139 | } |
| 140 | 140 | ||
| 141 | #endif // OLED_DRIVER_ENABLE | 141 | #endif // OLED_ENABLE |
diff --git a/users/snowe/oled_setup.h b/users/snowe/oled_setup.h index 031ce6bd0..7281dcd76 100644 --- a/users/snowe/oled_setup.h +++ b/users/snowe/oled_setup.h | |||
| @@ -18,7 +18,7 @@ | |||
| 18 | #pragma once | 18 | #pragma once |
| 19 | 19 | ||
| 20 | #include "quantum.h" | 20 | #include "quantum.h" |
| 21 | #ifdef OLED_DRIVER_ENABLE | 21 | #ifdef OLED_ENABLE |
| 22 | # include "oled_driver.h" | 22 | # include "oled_driver.h" |
| 23 | # define OLED_RENDER_WPM_COUNTER " WPM: " | 23 | # define OLED_RENDER_WPM_COUNTER " WPM: " |
| 24 | #endif | 24 | #endif |
| @@ -27,4 +27,4 @@ | |||
| 27 | #endif | 27 | #endif |
| 28 | #ifdef OCEAN_DREAM_ENABLE | 28 | #ifdef OCEAN_DREAM_ENABLE |
| 29 | # include "ocean_dream.h" | 29 | # include "ocean_dream.h" |
| 30 | #endif \ No newline at end of file | 30 | #endif |
diff --git a/users/snowe/readme_ocean_dream.md b/users/snowe/readme_ocean_dream.md index ca15dd47c..688afc899 100644 --- a/users/snowe/readme_ocean_dream.md +++ b/users/snowe/readme_ocean_dream.md | |||
| @@ -41,7 +41,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 41 | ``` | 41 | ``` |
| 42 | 4. In your `rules.mk` to make it easier to turn the animation on/off, add | 42 | 4. In your `rules.mk` to make it easier to turn the animation on/off, add |
| 43 | ```makefile | 43 | ```makefile |
| 44 | ifeq ($(strip $(OLED_DRIVER_ENABLE)), yes) | 44 | ifeq ($(strip $(OLED_ENABLE)), yes) |
| 45 | #... your code here... | 45 | #... your code here... |
| 46 | 46 | ||
| 47 | ifdef OCEAN_DREAM_ENABLE | 47 | ifdef OCEAN_DREAM_ENABLE |
| @@ -59,7 +59,8 @@ endif | |||
| 59 | 59 | ||
| 60 | You're done! Now you can enable **Ocean Dream** by simply turning on the OLED feature | 60 | You're done! Now you can enable **Ocean Dream** by simply turning on the OLED feature |
| 61 | ```makefile | 61 | ```makefile |
| 62 | OLED_DRIVER_ENABLE = yes | 62 | OLED_ENABLE = yes |
| 63 | OLED_DRIVER = SSD1306 | ||
| 63 | ``` | 64 | ``` |
| 64 | 65 | ||
| 65 | And if you want to disable it without turning off the OLED Driver you can simply set | 66 | And if you want to disable it without turning off the OLED Driver you can simply set |
diff --git a/users/snowe/rules.mk b/users/snowe/rules.mk index a6e152c1c..f188c9022 100644 --- a/users/snowe/rules.mk +++ b/users/snowe/rules.mk | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | 1 | ||
| 2 | 2 | ||
| 3 | ifeq ($(strip $(OLED_DRIVER_ENABLE)), yes) | 3 | ifeq ($(strip $(OLED_ENABLE)), yes) |
| 4 | SRC += oled_setup.c | 4 | SRC += oled_setup.c |
| 5 | 5 | ||
| 6 | ifdef OCEAN_DREAM_ENABLE | 6 | ifdef OCEAN_DREAM_ENABLE |
diff --git a/users/snowe/snowe.h b/users/snowe/snowe.h index 4453b2646..21764ca50 100644 --- a/users/snowe/snowe.h +++ b/users/snowe/snowe.h | |||
| @@ -35,7 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 35 | //#if defined(RGB_MATRIX_ENABLE) | 35 | //#if defined(RGB_MATRIX_ENABLE) |
| 36 | //# include "rgb_matrix_stuff.h" | 36 | //# include "rgb_matrix_stuff.h" |
| 37 | //#endif | 37 | //#endif |
| 38 | #ifdef OLED_DRIVER_ENABLE | 38 | #ifdef OLED_ENABLE |
| 39 | # include "oled_setup.h" | 39 | # include "oled_setup.h" |
| 40 | #endif | 40 | #endif |
| 41 | 41 | ||
diff --git a/users/tominabox1/rules.mk b/users/tominabox1/rules.mk index a7759f802..160dcce7b 100644 --- a/users/tominabox1/rules.mk +++ b/users/tominabox1/rules.mk | |||
| @@ -11,7 +11,8 @@ ifeq ($(strip $(KEYBOARD)), crkbd/rev1) | |||
| 11 | RGB_MATRIX_ENABLE = yes | 11 | RGB_MATRIX_ENABLE = yes |
| 12 | EXTRAFLAGS += -flto | 12 | EXTRAFLAGS += -flto |
| 13 | BOOTLOADER = qmk-dfu | 13 | BOOTLOADER = qmk-dfu |
| 14 | OLED_DRIVER_ENABLE = yes | 14 | OLED_ENABLE = yes |
| 15 | OLED_DRIVER = SSD1306 | ||
| 15 | endif | 16 | endif |
| 16 | 17 | ||
| 17 | ifeq ($(strip $(KEYBOARD)), lazydesigners/dimple) | 18 | ifeq ($(strip $(KEYBOARD)), lazydesigners/dimple) |
diff --git a/users/tominabox1/tominabox1.c b/users/tominabox1/tominabox1.c index 34fe3068a..e48959be9 100644 --- a/users/tominabox1/tominabox1.c +++ b/users/tominabox1/tominabox1.c | |||
| @@ -172,10 +172,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 172 | #endif | 172 | #endif |
| 173 | 173 | ||
| 174 | if (record->event.pressed) { | 174 | if (record->event.pressed) { |
| 175 | #ifdef OLED_DRIVER_ENABLE | 175 | #ifdef OLED_ENABLE |
| 176 | oled_timer = timer_read(); | 176 | oled_timer = timer_read(); |
| 177 | oled_on(); | 177 | oled_on(); |
| 178 | #endif // OLED_DRIVER_ENABLE | 178 | #endif // OLED_ENABLE |
| 179 | switch (keycode) { | 179 | switch (keycode) { |
| 180 | case KC_BBB: | 180 | case KC_BBB: |
| 181 | if (record->event.pressed) { | 181 | if (record->event.pressed) { |
| @@ -193,7 +193,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 193 | 193 | ||
| 194 | } | 194 | } |
| 195 | #ifdef KEYBOARD_crkbd_rev1 | 195 | #ifdef KEYBOARD_crkbd_rev1 |
| 196 | #ifdef OLED_DRIVER_ENABLE | 196 | #ifdef OLED_ENABLE |
| 197 | void render_logo(void) { | 197 | void render_logo(void) { |
| 198 | static const char PROGMEM logo[] = { | 198 | static const char PROGMEM logo[] = { |
| 199 | 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94, | 199 | 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94, |
diff --git a/users/xulkal/rules.mk b/users/xulkal/rules.mk index 8f8365ea7..7094191f2 100644 --- a/users/xulkal/rules.mk +++ b/users/xulkal/rules.mk | |||
| @@ -27,6 +27,6 @@ ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) | |||
| 27 | SRC += custom_rgb.c | 27 | SRC += custom_rgb.c |
| 28 | endif | 28 | endif |
| 29 | 29 | ||
| 30 | ifeq ($(strip $(OLED_DRIVER_ENABLE)), yes) | 30 | ifeq ($(strip $(OLED_ENABLE)), yes) |
| 31 | SRC += custom_oled.c | 31 | SRC += custom_oled.c |
| 32 | endif | 32 | endif |
