Compare commits

..

3 commits

3 changed files with 3 additions and 12 deletions

View file

@ -1,7 +1,5 @@
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
#define CAPS_LOCK_LED_ID 30
enum alt_keycodes { enum alt_keycodes {
U_T_AUTO = SAFE_RANGE, //USB Extra Port Toggle Auto Detect / Always Active U_T_AUTO = SAFE_RANGE, //USB Extra Port Toggle Auto Detect / Always Active
U_T_AGCR, //USB Toggle Automatic GCR control U_T_AGCR, //USB Toggle Automatic GCR control
@ -44,15 +42,8 @@ void matrix_scan_user(void) {
bool process_record_user(uint16_t keycode, keyrecord_t *record) { bool process_record_user(uint16_t keycode, keyrecord_t *record) {
static uint32_t key_timer; static uint32_t key_timer;
static bool caps_state;
switch (keycode) { switch (keycode) {
case KC_CAPSLOCK:
if (caps_state) {
rgb_matrix_set_color(CAPS_LOCK_LED_ID, 255, 255, 255);
}
caps_state = !caps_state;
return true;
case U_T_AUTO: case U_T_AUTO:
if (record->event.pressed && MODS_SHIFT && MODS_CTRL) { if (record->event.pressed && MODS_SHIFT && MODS_CTRL) {
TOGGLE_FLAG_AND_PRINT(usb_extra_manual, "USB extra port manual mode"); TOGGLE_FLAG_AND_PRINT(usb_extra_manual, "USB extra port manual mode");

View file

@ -311,9 +311,9 @@ void led_matrix_indicators(void) {
(led_map[i].scan == USB_LED_KANA_SCANCODE && (kbled & (1 << USB_LED_KANA))) || (led_map[i].scan == USB_LED_KANA_SCANCODE && (kbled & (1 << USB_LED_KANA))) ||
#endif // KANA #endif // KANA
(0)) { (0)) {
led_buffer[i].r = 255 - led_buffer[i].r; led_buffer[i].r = 0;// 255 - led_buffer[i].r;
led_buffer[i].g = 255 - led_buffer[i].g; led_buffer[i].g = 255;// - led_buffer[i].g;
led_buffer[i].b = 255 - led_buffer[i].b; led_buffer[i].b = 255;// - led_buffer[i].b;
} }
} }
} }