diff options
Diffstat (limited to 'keyboards/nullbitsco/nibble/keymaps/oled_status/keymap.c')
-rw-r--r-- | keyboards/nullbitsco/nibble/keymaps/oled_status/keymap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/keyboards/nullbitsco/nibble/keymaps/oled_status/keymap.c b/keyboards/nullbitsco/nibble/keymaps/oled_status/keymap.c index b3da17395..161eeedc3 100644 --- a/keyboards/nullbitsco/nibble/keymaps/oled_status/keymap.c +++ b/keyboards/nullbitsco/nibble/keymaps/oled_status/keymap.c | |||
@@ -15,7 +15,7 @@ | |||
15 | */ | 15 | */ |
16 | #include QMK_KEYBOARD_H | 16 | #include QMK_KEYBOARD_H |
17 | 17 | ||
18 | #ifdef OLED_DRIVER_ENABLE | 18 | #ifdef OLED_ENABLE |
19 | # include "oled_display.h" | 19 | # include "oled_display.h" |
20 | #endif | 20 | #endif |
21 | 21 | ||
@@ -44,7 +44,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
44 | }; | 44 | }; |
45 | // clang-format on | 45 | // clang-format on |
46 | 46 | ||
47 | #ifdef OLED_DRIVER_ENABLE | 47 | #ifdef OLED_ENABLE |
48 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 48 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { |
49 | oled_timer = timer_read32(); | 49 | oled_timer = timer_read32(); |
50 | set_oled_mode(OLED_MODE_IDLE); | 50 | set_oled_mode(OLED_MODE_IDLE); |
@@ -66,7 +66,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
66 | switch (keycode) { | 66 | switch (keycode) { |
67 | case RGB_TOG: | 67 | case RGB_TOG: |
68 | if (record->event.pressed) { | 68 | if (record->event.pressed) { |
69 | #ifdef OLED_DRIVER_ENABLE | 69 | #ifdef OLED_ENABLE |
70 | process_record_keymap_oled(keycode); | 70 | process_record_keymap_oled(keycode); |
71 | #endif | 71 | #endif |
72 | } | 72 | } |
@@ -82,12 +82,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
82 | bool encoder_update_user(uint8_t index, bool clockwise) { | 82 | bool encoder_update_user(uint8_t index, bool clockwise) { |
83 | if (clockwise) { | 83 | if (clockwise) { |
84 | tap_code(KC_VOLU); | 84 | tap_code(KC_VOLU); |
85 | #ifdef OLED_DRIVER_ENABLE | 85 | #ifdef OLED_ENABLE |
86 | process_record_encoder_oled(KC_VOLU); | 86 | process_record_encoder_oled(KC_VOLU); |
87 | #endif | 87 | #endif |
88 | } else { | 88 | } else { |
89 | tap_code(KC_VOLD); | 89 | tap_code(KC_VOLD); |
90 | #ifdef OLED_DRIVER_ENABLE | 90 | #ifdef OLED_ENABLE |
91 | process_record_encoder_oled(KC_VOLD); | 91 | process_record_encoder_oled(KC_VOLD); |
92 | #endif | 92 | #endif |
93 | } | 93 | } |