Make default layer size 16-bit (#15286)
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
This commit is contained in:
@@ -34,20 +34,20 @@ void led_set_kb(uint8_t usb_led) {
|
||||
layer_state_t layer_state_set_user(layer_state_t state)
|
||||
{
|
||||
// if on layer 1, turn on D2 LED, otherwise off.
|
||||
if (biton32(state) == 1) {
|
||||
if (get_highest_layer(state) == 1) {
|
||||
writePinHigh(D2);
|
||||
} else {
|
||||
writePinLow(D2);
|
||||
}
|
||||
// if on layer 2, turn on D1 LED, otherwise off.
|
||||
if (biton32(state) == 2) {
|
||||
if (get_highest_layer(state) == 2) {
|
||||
writePinHigh(D1);
|
||||
} else {
|
||||
writePinLow(D1);
|
||||
}
|
||||
|
||||
// if on layer 3, turn on D0 LED, otherwise off.
|
||||
if (biton32(state) == 3) {
|
||||
if (get_highest_layer(state) == 3) {
|
||||
writePinHigh(D0);
|
||||
} else {
|
||||
writePinLow(D0);
|
||||
|
Reference in New Issue
Block a user