Skip to content

Commit

Permalink
boop65: change rgbled config
Browse files Browse the repository at this point in the history
  • Loading branch information
yangdigi committed Jan 29, 2024
1 parent 0454998 commit 63ebf43
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion keyboards/ydkb/unicore_f1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "config_common.h"

/* USB Device descriptor parameter */
#define FW_VER_DATE DO19
#define FW_VER_DATE DO1S
#define CONTACT(x,y) x##y
#define CONTACT2(x,y) CONTACT(x,y)
#define FW_VER CONTACT2(VIAL_, FW_VER_DATE)
Expand Down
2 changes: 1 addition & 1 deletion keyboards/ydkb/unicore_f1/keymaps/boop65_vial/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#define RGBLIGHT_LIMIT_VAL 192
#undef RGBLED_NUM
#define RGBLED_NUM 1
#define INDICATOR_NUM 1
#define INDICATOR_NUM 0
#define INDICATOR_0_FUNCT (1<<USB_LED_CAPS_LOCK)
#define INDICATOR_0_COLOR (LED_TYPE){ .r = 255, .g = 0, .b = 255 }
#define INDICATOR_0_INSTRIP 0
2 changes: 1 addition & 1 deletion keyboards/ydkb/unicore_f1/keymaps/tofufa_vial/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
#define INDICATOR_NUM 1
#define INDICATOR_0_FUNCT (1<<USB_LED_CAPS_LOCK)
#define INDICATOR_0_COLOR (LED_TYPE){ .r = 255, .g = 0, .b = 255 }
#define INDICATOR_0_INSTRIP 0
//#define INDICATOR_0_INSTRIP 0
3 changes: 2 additions & 1 deletion keyboards/ydkb/unicore_f1/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdint.h"
#include "quantum.h"


extern rgblight_config_t rgblight_config;
static LED_TYPE RGBLIGHT_COLOR_OFF = { .r = 0, .g = 0, .b = 0 };
uint8_t indicator_state = 0;
#ifdef WELCOME_LIGHT
Expand Down Expand Up @@ -89,6 +89,7 @@ void led_set_user(uint8_t usb_led)
indicator_state |= (1<<2);
}
#endif
if (rgblight_config.mode == 1) rgblight_mode_noeeprom(rgblight_config.mode);
rgblight_set(); //set rgb even when rgblight.enable=0
}

Expand Down

0 comments on commit 63ebf43

Please sign in to comment.