diff options
| author | Danny <nooges@users.noreply.github.com> | 2020-04-25 17:26:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-25 14:26:26 -0700 |
| commit | 32bab55defe016fa945e73668cdf22e34df8fa34 (patch) | |
| tree | d6b413ab7bb84ad9debe04f57cb616261cfcb92f | |
| parent | 28e5969f780ec4a29ee27f55af60fab88369d1c4 (diff) | |
| download | qmk_firmware-32bab55defe016fa945e73668cdf22e34df8fa34.tar.gz qmk_firmware-32bab55defe016fa945e73668cdf22e34df8fa34.zip | |
Add Keebio lighting defaults (#8884)
* Set Iris LED/RGB defaults
* Add lighting defaults for more boards
| -rw-r--r-- | keyboards/keebio/bdn9/bdn9.c | 17 | ||||
| -rw-r--r-- | keyboards/keebio/chocopad/chocopad.c | 17 | ||||
| -rw-r--r-- | keyboards/keebio/dilly/dilly.c | 17 | ||||
| -rw-r--r-- | keyboards/keebio/ergodicity/ergodicity.c | 63 | ||||
| -rw-r--r-- | keyboards/keebio/iris/rev2/rev2.c | 23 | ||||
| -rw-r--r-- | keyboards/keebio/iris/rev3/rev3.c | 24 | ||||
| -rw-r--r-- | keyboards/keebio/iris/rev4/rev4.c | 17 | ||||
| -rw-r--r-- | keyboards/keebio/levinson/rev2/rev2.c | 32 | ||||
| -rw-r--r-- | keyboards/keebio/levinson/rev3/rev3.c | 32 | ||||
| -rw-r--r-- | keyboards/keebio/nyquist/rev2/rev2.c | 31 | ||||
| -rw-r--r-- | keyboards/keebio/nyquist/rev3/rev3.c | 31 | ||||
| -rw-r--r-- | keyboards/keebio/quefrency/rev1/rev1.c | 15 | ||||
| -rw-r--r-- | keyboards/keebio/viterbi/rev2/rev2.c | 17 |
13 files changed, 201 insertions, 135 deletions
diff --git a/keyboards/keebio/bdn9/bdn9.c b/keyboards/keebio/bdn9/bdn9.c index 0ff55fd6d..f3842d098 100644 --- a/keyboards/keebio/bdn9/bdn9.c +++ b/keyboards/keebio/bdn9/bdn9.c | |||
| @@ -1 +1,18 @@ | |||
| 1 | #include "bdn9.h" | 1 | #include "bdn9.h" |
| 2 | |||
| 3 | void eeconfig_init_kb(void) { | ||
| 4 | #ifdef BACKLIGHT_ENABLE | ||
| 5 | backlight_enable(); | ||
| 6 | backlight_level(5); | ||
| 7 | #endif | ||
| 8 | #ifdef RGBLIGHT_ENABLE | ||
| 9 | rgblight_enable(); // Enable RGB by default | ||
| 10 | rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness | ||
| 11 | #ifdef RGBLIGHT_ANIMATIONS | ||
| 12 | rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default | ||
| 13 | #endif | ||
| 14 | #endif | ||
| 15 | |||
| 16 | eeconfig_update_kb(0); | ||
| 17 | eeconfig_init_user(); | ||
| 18 | } | ||
diff --git a/keyboards/keebio/chocopad/chocopad.c b/keyboards/keebio/chocopad/chocopad.c index f54753af5..db62f02cc 100644 --- a/keyboards/keebio/chocopad/chocopad.c +++ b/keyboards/keebio/chocopad/chocopad.c | |||
| @@ -1 +1,18 @@ | |||
| 1 | #include "chocopad.h" | 1 | #include "chocopad.h" |
| 2 | |||
| 3 | void eeconfig_init_kb(void) { | ||
| 4 | #ifdef BACKLIGHT_ENABLE | ||
| 5 | backlight_enable(); | ||
| 6 | backlight_level(5); | ||
| 7 | #endif | ||
| 8 | #ifdef RGBLIGHT_ENABLE | ||
| 9 | rgblight_enable(); // Enable RGB by default | ||
| 10 | rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness | ||
| 11 | #ifdef RGBLIGHT_ANIMATIONS | ||
| 12 | rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default | ||
| 13 | #endif | ||
| 14 | #endif | ||
| 15 | |||
| 16 | eeconfig_update_kb(0); | ||
| 17 | eeconfig_init_user(); | ||
| 18 | } | ||
diff --git a/keyboards/keebio/dilly/dilly.c b/keyboards/keebio/dilly/dilly.c index 89affe850..da17277f6 100644 --- a/keyboards/keebio/dilly/dilly.c +++ b/keyboards/keebio/dilly/dilly.c | |||
| @@ -1 +1,18 @@ | |||
| 1 | #include "dilly.h" | 1 | #include "dilly.h" |
| 2 | |||
| 3 | void eeconfig_init_kb(void) { | ||
| 4 | #ifdef BACKLIGHT_ENABLE | ||
| 5 | backlight_enable(); | ||
| 6 | backlight_level(3); | ||
| 7 | #endif | ||
| 8 | #ifdef RGBLIGHT_ENABLE | ||
| 9 | rgblight_enable(); // Enable RGB by default | ||
| 10 | rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness | ||
| 11 | #ifdef RGBLIGHT_ANIMATIONS | ||
| 12 | rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default | ||
| 13 | #endif | ||
| 14 | #endif | ||
| 15 | |||
| 16 | eeconfig_update_kb(0); | ||
| 17 | eeconfig_init_user(); | ||
| 18 | } | ||
diff --git a/keyboards/keebio/ergodicity/ergodicity.c b/keyboards/keebio/ergodicity/ergodicity.c index 0bbcf6117..790dc2f61 100644 --- a/keyboards/keebio/ergodicity/ergodicity.c +++ b/keyboards/keebio/ergodicity/ergodicity.c | |||
| @@ -1,51 +1,18 @@ | |||
| 1 | /* Copyright 2019 Keebio | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include "ergodicity.h" | 1 | #include "ergodicity.h" |
| 17 | 2 | ||
| 18 | // Optional override functions below. | 3 | void eeconfig_init_kb(void) { |
| 19 | // You can leave any or all of these undefined. | 4 | #ifdef BACKLIGHT_ENABLE |
| 20 | // These are only required if you want to perform custom actions. | 5 | backlight_enable(); |
| 21 | 6 | backlight_level(5); | |
| 22 | /* | 7 | #endif |
| 23 | 8 | #ifdef RGBLIGHT_ENABLE | |
| 24 | void matrix_init_kb(void) { | 9 | rgblight_enable(); // Enable RGB by default |
| 25 | // put your keyboard start-up code here | 10 | rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness |
| 26 | // runs once when the firmware starts up | 11 | #ifdef RGBLIGHT_ANIMATIONS |
| 27 | 12 | rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default | |
| 28 | matrix_init_user(); | 13 | #endif |
| 14 | #endif | ||
| 15 | |||
| 16 | eeconfig_update_kb(0); | ||
| 17 | eeconfig_init_user(); | ||
| 29 | } | 18 | } |
| 30 | |||
| 31 | void matrix_scan_kb(void) { | ||
| 32 | // put your looping keyboard code here | ||
| 33 | // runs every cycle (a lot) | ||
| 34 | |||
| 35 | matrix_scan_user(); | ||
| 36 | } | ||
| 37 | |||
| 38 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
| 39 | // put your per-action keyboard code here | ||
| 40 | // runs for every action, just before processing by the firmware | ||
| 41 | |||
| 42 | return process_record_user(keycode, record); | ||
| 43 | } | ||
| 44 | |||
| 45 | void led_set_kb(uint8_t usb_led) { | ||
| 46 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
| 47 | |||
| 48 | led_set_user(usb_led); | ||
| 49 | } | ||
| 50 | |||
| 51 | */ | ||
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 | } | ||
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 | } | ||
diff --git a/keyboards/keebio/iris/rev4/rev4.c b/keyboards/keebio/iris/rev4/rev4.c index bd0989acb..de2ba26db 100644 --- a/keyboards/keebio/iris/rev4/rev4.c +++ b/keyboards/keebio/iris/rev4/rev4.c | |||
| @@ -1 +1,18 @@ | |||
| 1 | #include "rev4.h" | 1 | #include "rev4.h" |
| 2 | |||
| 3 | void eeconfig_init_kb(void) { | ||
| 4 | #ifdef BACKLIGHT_ENABLE | ||
| 5 | backlight_enable(); | ||
| 6 | backlight_level(3); | ||
| 7 | #endif | ||
| 8 | #ifdef RGBLIGHT_ENABLE | ||
| 9 | rgblight_enable(); // Enable RGB by default | ||
| 10 | rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness | ||
| 11 | #ifdef RGBLIGHT_ANIMATIONS | ||
| 12 | rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default | ||
| 13 | #endif | ||
| 14 | #endif | ||
| 15 | |||
| 16 | eeconfig_update_kb(0); | ||
| 17 | eeconfig_init_user(); | ||
| 18 | } | ||
diff --git a/keyboards/keebio/levinson/rev2/rev2.c b/keyboards/keebio/levinson/rev2/rev2.c index 573fa787b..8e65af7ad 100644 --- a/keyboards/keebio/levinson/rev2/rev2.c +++ b/keyboards/keebio/levinson/rev2/rev2.c | |||
| @@ -1,22 +1,18 @@ | |||
| 1 | #include "levinson.h" | 1 | #include "levinson.h" |
| 2 | 2 | ||
| 3 | #ifdef SSD1306OLED | 3 | void eeconfig_init_kb(void) { |
| 4 | void led_set_kb(uint8_t usb_led) { | 4 | #ifdef BACKLIGHT_ENABLE |
| 5 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | 5 | backlight_enable(); |
| 6 | led_set_user(usb_led); | 6 | backlight_level(5); |
| 7 | } | 7 | #endif |
| 8 | #ifdef RGBLIGHT_ENABLE | ||
| 9 | rgblight_enable(); // Enable RGB by default | ||
| 10 | rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness | ||
| 11 | #ifdef RGBLIGHT_ANIMATIONS | ||
| 12 | rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default | ||
| 13 | #endif | ||
| 8 | #endif | 14 | #endif |
| 9 | 15 | ||
| 10 | void matrix_init_kb(void) { | 16 | eeconfig_update_kb(0); |
| 11 | 17 | eeconfig_init_user(); | |
| 12 | // // green led on | 18 | } |
| 13 | // DDRD |= (1<<5); | ||
| 14 | // PORTD &= ~(1<<5); | ||
| 15 | |||
| 16 | // // orange led on | ||
| 17 | // DDRB |= (1<<0); | ||
| 18 | // PORTB &= ~(1<<0); | ||
| 19 | |||
| 20 | matrix_init_user(); | ||
| 21 | }; | ||
| 22 | |||
diff --git a/keyboards/keebio/levinson/rev3/rev3.c b/keyboards/keebio/levinson/rev3/rev3.c index 573fa787b..8e65af7ad 100644 --- a/keyboards/keebio/levinson/rev3/rev3.c +++ b/keyboards/keebio/levinson/rev3/rev3.c | |||
| @@ -1,22 +1,18 @@ | |||
| 1 | #include "levinson.h" | 1 | #include "levinson.h" |
| 2 | 2 | ||
| 3 | #ifdef SSD1306OLED | 3 | void eeconfig_init_kb(void) { |
| 4 | void led_set_kb(uint8_t usb_led) { | 4 | #ifdef BACKLIGHT_ENABLE |
| 5 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | 5 | backlight_enable(); |
| 6 | led_set_user(usb_led); | 6 | backlight_level(5); |
| 7 | } | 7 | #endif |
| 8 | #ifdef RGBLIGHT_ENABLE | ||
| 9 | rgblight_enable(); // Enable RGB by default | ||
| 10 | rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness | ||
| 11 | #ifdef RGBLIGHT_ANIMATIONS | ||
| 12 | rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default | ||
| 13 | #endif | ||
| 8 | #endif | 14 | #endif |
| 9 | 15 | ||
| 10 | void matrix_init_kb(void) { | 16 | eeconfig_update_kb(0); |
| 11 | 17 | eeconfig_init_user(); | |
| 12 | // // green led on | 18 | } |
| 13 | // DDRD |= (1<<5); | ||
| 14 | // PORTD &= ~(1<<5); | ||
| 15 | |||
| 16 | // // orange led on | ||
| 17 | // DDRB |= (1<<0); | ||
| 18 | // PORTB &= ~(1<<0); | ||
| 19 | |||
| 20 | matrix_init_user(); | ||
| 21 | }; | ||
| 22 | |||
diff --git a/keyboards/keebio/nyquist/rev2/rev2.c b/keyboards/keebio/nyquist/rev2/rev2.c index 9922b8995..b5652e06d 100644 --- a/keyboards/keebio/nyquist/rev2/rev2.c +++ b/keyboards/keebio/nyquist/rev2/rev2.c | |||
| @@ -1,21 +1,18 @@ | |||
| 1 | #include "rev2.h" | 1 | #include "rev2.h" |
| 2 | 2 | ||
| 3 | #ifdef SSD1306OLED | 3 | void eeconfig_init_kb(void) { |
| 4 | void led_set_kb(uint8_t usb_led) { | 4 | #ifdef BACKLIGHT_ENABLE |
| 5 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | 5 | backlight_enable(); |
| 6 | led_set_user(usb_led); | 6 | backlight_level(5); |
| 7 | } | 7 | #endif |
| 8 | #ifdef RGBLIGHT_ENABLE | ||
| 9 | rgblight_enable(); // Enable RGB by default | ||
| 10 | rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness | ||
| 11 | #ifdef RGBLIGHT_ANIMATIONS | ||
| 12 | rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default | ||
| 13 | #endif | ||
| 8 | #endif | 14 | #endif |
| 9 | 15 | ||
| 10 | void matrix_init_kb(void) { | 16 | eeconfig_update_kb(0); |
| 11 | 17 | eeconfig_init_user(); | |
| 12 | // // green led on | 18 | } |
| 13 | // DDRD |= (1<<5); | ||
| 14 | // PORTD &= ~(1<<5); | ||
| 15 | |||
| 16 | // // orange led on | ||
| 17 | // DDRB |= (1<<0); | ||
| 18 | // PORTB &= ~(1<<0); | ||
| 19 | |||
| 20 | matrix_init_user(); | ||
| 21 | }; | ||
diff --git a/keyboards/keebio/nyquist/rev3/rev3.c b/keyboards/keebio/nyquist/rev3/rev3.c index 34500fb10..6d7dc3531 100644 --- a/keyboards/keebio/nyquist/rev3/rev3.c +++ b/keyboards/keebio/nyquist/rev3/rev3.c | |||
| @@ -1,21 +1,18 @@ | |||
| 1 | #include "rev3.h" | 1 | #include "rev3.h" |
| 2 | 2 | ||
| 3 | #ifdef SSD1306OLED | 3 | void eeconfig_init_kb(void) { |
| 4 | void led_set_kb(uint8_t usb_led) { | 4 | #ifdef BACKLIGHT_ENABLE |
| 5 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | 5 | backlight_enable(); |
| 6 | led_set_user(usb_led); | 6 | backlight_level(5); |
| 7 | } | 7 | #endif |
| 8 | #ifdef RGBLIGHT_ENABLE | ||
| 9 | rgblight_enable(); // Enable RGB by default | ||
| 10 | rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness | ||
| 11 | #ifdef RGBLIGHT_ANIMATIONS | ||
| 12 | rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default | ||
| 13 | #endif | ||
| 8 | #endif | 14 | #endif |
| 9 | 15 | ||
| 10 | void matrix_init_kb(void) { | 16 | eeconfig_update_kb(0); |
| 11 | 17 | eeconfig_init_user(); | |
| 12 | // // green led on | 18 | } |
| 13 | // DDRD |= (1<<5); | ||
| 14 | // PORTD &= ~(1<<5); | ||
| 15 | |||
| 16 | // // orange led on | ||
| 17 | // DDRB |= (1<<0); | ||
| 18 | // PORTB &= ~(1<<0); | ||
| 19 | |||
| 20 | matrix_init_user(); | ||
| 21 | }; | ||
diff --git a/keyboards/keebio/quefrency/rev1/rev1.c b/keyboards/keebio/quefrency/rev1/rev1.c index a690a7eff..567730535 100644 --- a/keyboards/keebio/quefrency/rev1/rev1.c +++ b/keyboards/keebio/quefrency/rev1/rev1.c | |||
| @@ -1,5 +1,14 @@ | |||
| 1 | #include "quefrency.h" | 1 | #include "quefrency.h" |
| 2 | 2 | ||
| 3 | void matrix_init_kb(void) { | 3 | void eeconfig_init_kb(void) { |
| 4 | matrix_init_user(); | 4 | #ifdef RGBLIGHT_ENABLE |
| 5 | }; | 5 | rgblight_enable(); // Enable RGB by default |
| 6 | rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness | ||
| 7 | #ifdef RGBLIGHT_ANIMATIONS | ||
| 8 | rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default | ||
| 9 | #endif | ||
| 10 | #endif | ||
| 11 | |||
| 12 | eeconfig_update_kb(0); | ||
| 13 | eeconfig_init_user(); | ||
| 14 | } | ||
diff --git a/keyboards/keebio/viterbi/rev2/rev2.c b/keyboards/keebio/viterbi/rev2/rev2.c index 509e42dc5..dbf584f99 100644 --- a/keyboards/keebio/viterbi/rev2/rev2.c +++ b/keyboards/keebio/viterbi/rev2/rev2.c | |||
| @@ -1 +1,18 @@ | |||
| 1 | #include "viterbi.h" | 1 | #include "viterbi.h" |
| 2 | |||
| 3 | void eeconfig_init_kb(void) { | ||
| 4 | #ifdef BACKLIGHT_ENABLE | ||
| 5 | backlight_enable(); | ||
| 6 | backlight_level(5); | ||
| 7 | #endif | ||
| 8 | #ifdef RGBLIGHT_ENABLE | ||
| 9 | rgblight_enable(); // Enable RGB by default | ||
| 10 | rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness | ||
| 11 | #ifdef RGBLIGHT_ANIMATIONS | ||
| 12 | rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default | ||
| 13 | #endif | ||
| 14 | #endif | ||
| 15 | |||
| 16 | eeconfig_update_kb(0); | ||
| 17 | eeconfig_init_user(); | ||
| 18 | } | ||
