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 /keyboards/keybage | |
| 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 'keyboards/keybage')
| -rw-r--r-- | keyboards/keybage/radpad/config.h | 2 | ||||
| -rw-r--r-- | keyboards/keybage/radpad/keymaps/default/keymap.c | 2 | ||||
| -rw-r--r-- | keyboards/keybage/radpad/rules.mk | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/keyboards/keybage/radpad/config.h b/keyboards/keybage/radpad/config.h index 4692b3818..0d885ddea 100644 --- a/keyboards/keybage/radpad/config.h +++ b/keyboards/keybage/radpad/config.h | |||
| @@ -61,7 +61,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 61 | #define BOOTMAGIC_LITE_COLUMN 3 | 61 | #define BOOTMAGIC_LITE_COLUMN 3 |
| 62 | 62 | ||
| 63 | /* OLED Configuration */ | 63 | /* OLED Configuration */ |
| 64 | #ifdef OLED_DRIVER_ENABLE | 64 | #ifdef OLED_ENABLE |
| 65 | #define OLED_TIMEOUT 60000 | 65 | #define OLED_TIMEOUT 60000 |
| 66 | #define OLED_LOGO_TIMEOUT 3000 // How long (in ms) the logo appears at start up | 66 | #define OLED_LOGO_TIMEOUT 3000 // How long (in ms) the logo appears at start up |
| 67 | #endif | 67 | #endif |
diff --git a/keyboards/keybage/radpad/keymaps/default/keymap.c b/keyboards/keybage/radpad/keymaps/default/keymap.c index 69bb3c685..190400f7f 100644 --- a/keyboards/keybage/radpad/keymaps/default/keymap.c +++ b/keyboards/keybage/radpad/keymaps/default/keymap.c | |||
| @@ -54,7 +54,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) { | |||
| 54 | return true; | 54 | return true; |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | #ifdef OLED_DRIVER_ENABLE | 57 | #ifdef OLED_ENABLE |
| 58 | static uint32_t oled_logo_timer = 0; | 58 | static uint32_t oled_logo_timer = 0; |
| 59 | bool oled_logo_cleared = false; // Set to true if you don't want a logo at all | 59 | bool oled_logo_cleared = false; // Set to true if you don't want a logo at all |
| 60 | 60 | ||
diff --git a/keyboards/keybage/radpad/rules.mk b/keyboards/keybage/radpad/rules.mk index 2bf7e4c8b..de52147e1 100644 --- a/keyboards/keybage/radpad/rules.mk +++ b/keyboards/keybage/radpad/rules.mk | |||
| @@ -21,5 +21,6 @@ RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | |||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth |
| 22 | AUDIO_ENABLE = no # Audio output | 22 | AUDIO_ENABLE = no # Audio output |
| 23 | ENCODER_ENABLE = yes | 23 | ENCODER_ENABLE = yes |
| 24 | OLED_DRIVER_ENABLE = yes | 24 | OLED_ENABLE = yes |
| 25 | OLED_DRIVER = SSD1306 | ||
| 25 | LTO_ENABLE = yes | 26 | LTO_ENABLE = yes |
