gh80_3000 - Enable indicator LED functionality (#23633)
Co-authored-by: chalex <alejandrelee+magbogbro@gmail.com>
This commit is contained in:
parent
78a76b6c1e
commit
b4b222a6e3
8 changed files with 12 additions and 164 deletions
|
|
@ -12,29 +12,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
)
|
||||
};
|
||||
|
||||
bool led_update_user(led_t led_state) {
|
||||
if (led_state.num_lock) {
|
||||
DDRB |= (1 << 5);
|
||||
PORTB &= ~(1 << 5);
|
||||
} else {
|
||||
DDRB &= ~(1 << 5);
|
||||
PORTB &= ~(1 << 5);
|
||||
}
|
||||
|
||||
if (led_state.caps_lock) {
|
||||
DDRB |= (1 << 6);
|
||||
PORTB &= ~(1 << 6);
|
||||
} else {
|
||||
DDRB &= ~(1 << 6);
|
||||
PORTB &= ~(1 << 6);
|
||||
}
|
||||
|
||||
if (led_state.scroll_lock) {
|
||||
DDRB |= (1 << 7);
|
||||
PORTB &= ~(1 << 7);
|
||||
} else {
|
||||
DDRB &= ~(1 << 7);
|
||||
PORTB &= ~(1 << 7);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue