Skip to content

Commit

Permalink
Merge pull request keyboardio#5 from algernon/f/numlock-api-simplific…
Browse files Browse the repository at this point in the history
…ation

Update to work with an argument-less NumLock.toggle()
  • Loading branch information
obra authored Jul 23, 2017
2 parents 119423c + 90a4a06 commit 85899bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Model01-Firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -124,6 +124,7 @@ void setup() {
&MouseKeys,
NULL);

NumLock.numPadLayer = NUMPAD_KEYMAP;
AlphaSquare.color = { 255, 0, 0 };
LEDRainbowEffect.brightness(150);
LEDRainbowWaveEffect.brightness(150);
Expand Down

0 comments on commit 85899bb

Please sign in to comment.