more flexible led processing functions, all and on/off/toggle
functioning
This commit is contained in:
parent
15635817b5
commit
1b1adf35bb
4 changed files with 96 additions and 77 deletions
|
@ -210,14 +210,14 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
|||
case ACTION_LEDS_NAV:
|
||||
if(record->event.pressed) {
|
||||
// signal the LED controller thread
|
||||
msg=(TOGGLE_LAYER_LEDS << 8) | 3;
|
||||
msg=(OFF_LED << 8) | 12;
|
||||
chMBPost(&led_mailbox, msg, TIME_IMMEDIATE);
|
||||
}
|
||||
break;
|
||||
case ACTION_LEDS_NUMPAD:
|
||||
if(record->event.pressed) {
|
||||
// signal the LED controller thread
|
||||
msg=(TOGGLE_LAYER_LEDS << 8) | 4;
|
||||
msg=(ON_LED << 8) | 12;
|
||||
chMBPost(&led_mailbox, msg, TIME_IMMEDIATE);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue