aboutsummaryrefslogtreecommitdiff
path: root/keyboards/keybage
diff options
context:
space:
mode:
authorXelus22 <17491233+Xelus22@users.noreply.github.com>2021-08-24 16:28:26 +1000
committerGitHub <noreply@github.com>2021-08-24 16:28:26 +1000
commit4e1c5887c5c08ebd2cf7868c8d9292aa728e7bf0 (patch)
tree24ff5bdf570a6a9f5a77a517005bffbb35e46b22 /keyboards/keybage
parent6fd20acf4be76e7a2bd82d3dfd0a9bcca8c507eb (diff)
downloadqmk_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.h2
-rw-r--r--keyboards/keybage/radpad/keymaps/default/keymap.c2
-rw-r--r--keyboards/keybage/radpad/rules.mk3
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
58static uint32_t oled_logo_timer = 0; 58static uint32_t oled_logo_timer = 0;
59bool oled_logo_cleared = false; // Set to true if you don't want a logo at all 59bool 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
21BLUETOOTH_ENABLE = no # Enable Bluetooth 21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output 22AUDIO_ENABLE = no # Audio output
23ENCODER_ENABLE = yes 23ENCODER_ENABLE = yes
24OLED_DRIVER_ENABLE = yes 24OLED_ENABLE = yes
25OLED_DRIVER = SSD1306
25LTO_ENABLE = yes 26LTO_ENABLE = yes