aboutsummaryrefslogtreecommitdiff
path: root/keyboards/keebio/kbo5000/rev1/rev1.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keebio/kbo5000/rev1/rev1.c')
-rw-r--r--keyboards/keebio/kbo5000/rev1/rev1.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/keyboards/keebio/kbo5000/rev1/rev1.c b/keyboards/keebio/kbo5000/rev1/rev1.c
new file mode 100644
index 000000000..fafad9b6a
--- /dev/null
+++ b/keyboards/keebio/kbo5000/rev1/rev1.c
@@ -0,0 +1,32 @@
1#include "kbo5000.h"
2#include "split_util.h"
3
4void matrix_init_kb(void) {
5 setPinOutput(CAPS_LOCK_LED_PIN);
6 matrix_init_user();
7}
8
9bool led_update_kb(led_t led_state) {
10 // Only update if left half
11 if (isLeftHand && led_update_user(led_state)) {
12 writePin(CAPS_LOCK_LED_PIN, !led_state.caps_lock);
13 }
14 return true;
15}
16
17void eeconfig_init_kb(void) {
18#ifdef BACKLIGHT_ENABLE
19 backlight_enable();
20 backlight_level(3);
21#endif
22#ifdef RGBLIGHT_ENABLE
23 rgblight_enable(); // Enable RGB by default
24 rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
25#ifdef RGBLIGHT_ANIMATIONS
26 rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
27#endif
28#endif
29
30 eeconfig_update_kb(0);
31 eeconfig_init_user();
32}