diff options
Diffstat (limited to 'keyboards/keebio/iris/rev3/rev3.c')
-rw-r--r-- | keyboards/keebio/iris/rev3/rev3.c | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/keyboards/keebio/iris/rev3/rev3.c b/keyboards/keebio/iris/rev3/rev3.c index 7e49330c1..f58c2093c 100644 --- a/keyboards/keebio/iris/rev3/rev3.c +++ b/keyboards/keebio/iris/rev3/rev3.c | |||
@@ -1,12 +1,5 @@ | |||
1 | #include "rev3.h" | 1 | #include "rev3.h" |
2 | 2 | ||
3 | #ifdef SSD1306OLED | ||
4 | void led_set_kb(uint8_t usb_led) { | ||
5 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
6 | led_set_user(usb_led); | ||
7 | } | ||
8 | #endif | ||
9 | |||
10 | #ifdef SWAP_HANDS_ENABLE | 3 | #ifdef SWAP_HANDS_ENABLE |
11 | __attribute__ ((weak)) | 4 | __attribute__ ((weak)) |
12 | // swap-hands action needs a matrix to define the swap | 5 | // swap-hands action needs a matrix to define the swap |
@@ -25,3 +18,20 @@ const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | |||
25 | {{0,4}, {1,4}, {2,4}, {3,4}, {4,4}, {5,4}}, | 18 | {{0,4}, {1,4}, {2,4}, {3,4}, {4,4}, {5,4}}, |
26 | }; | 19 | }; |
27 | #endif | 20 | #endif |
21 | |||
22 | void eeconfig_init_kb(void) { | ||
23 | #ifdef BACKLIGHT_ENABLE | ||
24 | backlight_enable(); | ||
25 | backlight_level(3); | ||
26 | #endif | ||
27 | #ifdef RGBLIGHT_ENABLE | ||
28 | rgblight_enable(); // Enable RGB by default | ||
29 | rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness | ||
30 | #ifdef RGBLIGHT_ANIMATIONS | ||
31 | rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default | ||
32 | #endif | ||
33 | #endif | ||
34 | |||
35 | eeconfig_update_kb(0); | ||
36 | eeconfig_init_user(); | ||
37 | } | ||