Skip to content

Commit

Permalink
Update to work with an argument-less NumLock.toggle()
Browse files Browse the repository at this point in the history
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
algernon committed Jul 2, 2017
1 parent 119423c commit 90a4a06
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
@@ -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);

0 comments on commit 90a4a06

Please sign in to comment.