diff options
Diffstat (limited to 'keyboards/keebio/iris/rev2/rev2.c')
| -rw-r--r-- | keyboards/keebio/iris/rev2/rev2.c | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/keyboards/keebio/iris/rev2/rev2.c b/keyboards/keebio/iris/rev2/rev2.c index 8575243f0..70c30695a 100644 --- a/keyboards/keebio/iris/rev2/rev2.c +++ b/keyboards/keebio/iris/rev2/rev2.c | |||
| @@ -1,12 +1,5 @@ | |||
| 1 | #include "rev2.h" | 1 | #include "rev2.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 |
| @@ -26,3 +19,19 @@ const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | |||
| 26 | }; | 19 | }; |
| 27 | #endif | 20 | #endif |
| 28 | 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 | } | ||
