Compare commits

..

No commits in common. "9df98ed3f0100f24f8d6323a1058f93c9d337bfe" and "49929a0489ee9040ef7faaee0cf4d7f277ddb3f4" have entirely different histories.

3 changed files with 12 additions and 3 deletions

View file

@ -1,5 +1,7 @@
#include QMK_KEYBOARD_H
#define CAPS_LOCK_LED_ID 30
enum alt_keycodes {
U_T_AUTO = SAFE_RANGE, //USB Extra Port Toggle Auto Detect / Always Active
U_T_AGCR, //USB Toggle Automatic GCR control
@ -42,8 +44,15 @@ void matrix_scan_user(void) {
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
static uint32_t key_timer;
static bool caps_state;
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:
if (record->event.pressed && MODS_SHIFT && MODS_CTRL) {
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))) ||
#endif // KANA
(0)) {
led_buffer[i].r = 0;// 255 - led_buffer[i].r;
led_buffer[i].g = 255;// - led_buffer[i].g;
led_buffer[i].b = 255;// - led_buffer[i].b;
led_buffer[i].r = 255 - led_buffer[i].r;
led_buffer[i].g = 255 - led_buffer[i].g;
led_buffer[i].b = 255 - led_buffer[i].b;
}
}
}