فهرست منبع

[Keyboard] adjust h87a RGB settings (#7751)

* update VID and PID for h87a

* update default RGB underglow pattern

* update comments

* Update keyboards/hineybush/h87a/h87a.c

* Update keyboards/hineybush/h87a/h87a.c

* Update keyboards/hineybush/h87a/h87a.c
Josh Hinnebusch 5 سال پیش
والد
کامیت
61173dce5d
3فایلهای تغییر یافته به همراه10 افزوده شده و 2 حذف شده
  1. 1 0
      keyboards/hineybush/h87a/config.h
  2. 8 1
      keyboards/hineybush/h87a/h87a.c
  3. 1 1
      keyboards/hineybush/h87a/rules.mk

+ 1 - 0
keyboards/hineybush/h87a/config.h

@@ -72,5 +72,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define RGBLIGHT_HUE_STEP 8
 #define RGBLIGHT_SAT_STEP 8
 #define RGBLIGHT_VAL_STEP 8
+#define RGBLIGHT_LIMIT_VAL 200
 #define RGBLIGHT_SLEEP // RGB will turn off when PC is put to sleep
 #endif

+ 8 - 1
keyboards/hineybush/h87a/h87a.c

@@ -42,4 +42,11 @@ void led_set_kb(uint8_t usb_led) {
 	led_set_user(usb_led);
 }
 
-
+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/h87a/rules.mk

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