Josh Hinnebusch 6 лет назад
Родитель
Сommit
f2c61f8840
2 измененных файлов с 10 добавлено и 1 удалено
  1. 9 0
      keyboards/hineybush/h75_singa/h75_singa.c
  2. 1 1
      keyboards/hineybush/h75_singa/rules.mk

+ 9 - 0
keyboards/hineybush/h75_singa/h75_singa.c

@@ -15,3 +15,12 @@
  */
 
 #include "h75_singa.h"
+
+void eeconfig_init_kb(void) {  // EEPROM is getting reset!
+  rgblight_enable(); // Enable RGB by default
+  rgblight_sethsv(0, 255, 128);  // Set default HSV - red hue, full saturation, medium brightness
+  rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
+
+  eeconfig_update_kb(0);
+  eeconfig_init_user();
+}

+ 1 - 1
keyboards/hineybush/h75_singa/rules.mk

@@ -14,7 +14,7 @@ BOOTLOADER = atmel-dfu
 # Build Options
 #   change yes to no to disable
 #
-BOOTMAGIC_ENABLE = no       # Virtual DIP switch configuration
+BOOTMAGIC_ENABLE = lite       # Virtual DIP switch configuration
 MOUSEKEY_ENABLE = yes       # Mouse keys
 EXTRAKEY_ENABLE = yes       # Audio control and System control
 CONSOLE_ENABLE = no        # Console for debug