mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-18 05:32:05 +00:00
Removed non-standard configuration in favor for 'led_update_kb'.
This commit is contained in:
parent
b76f0ab587
commit
2c7483f060
@ -18,12 +18,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
)
|
||||
};
|
||||
|
||||
void led_set_user(uint8_t usb_led) {
|
||||
|
||||
if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
|
||||
DDRF |= (1 << 6); PORTF &= ~(1 << 6);
|
||||
} else {
|
||||
DDRF &= ~(1 << 6); PORTF &= ~(1 << 6);
|
||||
}
|
||||
}
|
||||
|
@ -1 +1,11 @@
|
||||
#include "tr60w.h"
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
bool runDefault = led_update_user(led_state);
|
||||
if (runDefault) {
|
||||
writePin(B1, !led_state.num_lock);
|
||||
writePin(B2, !led_state.caps_lock);
|
||||
writePin(B3, !led_state.scroll_lock);
|
||||
}
|
||||
return runDefault;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user