Compare commits
3 commits
49929a0489
...
9df98ed3f0
Author | SHA1 | Date | |
---|---|---|---|
KemoNine | 9df98ed3f0 | ||
KemoNine | bbe86c4cd5 | ||
KemoNine | 38e476362d |
Binary file not shown.
|
@ -1,7 +1,5 @@
|
|||
#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
|
||||
|
@ -44,15 +42,8 @@ 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");
|
||||
|
|
|
@ -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 = 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 = 0;// 255 - led_buffer[i].r;
|
||||
led_buffer[i].g = 255;// - led_buffer[i].g;
|
||||
led_buffer[i].b = 255;// - led_buffer[i].b;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue