diff options
author | Jesse Vincent <jesse@fsck.com> | 2017-07-23 13:09:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-23 13:09:04 -0700 |
commit | 85899bbaff18435857d54e0227b387b8a09e5564 (patch) | |
tree | 8431cd637b14a1318a27c9eb7547804a298d3c46 | |
parent | 119423cbbdb436dc1d1b9e2fbe6c056f3ff8b469 (diff) | |
parent | 90a4a061260e7553bebbe5e36ac132bf4d5aba81 (diff) | |
download | model01-firmware-85899bbaff18435857d54e0227b387b8a09e5564.tar.gz model01-firmware-85899bbaff18435857d54e0227b387b8a09e5564.tar.bz2 model01-firmware-85899bbaff18435857d54e0227b387b8a09e5564.zip |
Merge pull request #5 from algernon/f/numlock-api-simplification
Update to work with an argument-less NumLock.toggle()
-rw-r--r-- | Model01-Firmware.ino | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino index 0375788..cc4e2b6 100644 --- a/Model01-Firmware.ino +++ b/Model01-Firmware.ino @@ -97,7 +97,7 @@ static LEDSolidColor solidViolet(130, 0, 120); const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) { if (macroIndex == TOGGLENUMLOCK && key_toggled_on(keyState)) { - return NumLock.toggle(Macros.row, Macros.col, NUMPAD_KEYMAP); + return NumLock.toggle(); } else if (macroIndex == 1 && key_toggled_on(keyState)) { Macros.type(PSTR("Keyboardio Model 01 - Kaleidoscope ")); Macros.type(PSTR(BUILD_INFORMATION)); @@ -124,6 +124,7 @@ void setup() { &MouseKeys, NULL); + NumLock.numPadLayer = NUMPAD_KEYMAP; AlphaSquare.color = { 255, 0, 0 }; LEDRainbowEffect.brightness(150); LEDRainbowWaveEffect.brightness(150); |