summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Vincent <jesse@keyboard.io>2017-11-12 23:23:47 -0800
committerJesse Vincent <jesse@keyboard.io>2017-11-12 23:23:47 -0800
commita457f37155c2c9ee2703558c776053514ab0cd73 (patch)
tree603a56dce35f49dc1bb3740e8a1337f5327d2fec
parent8f5851138cd3b22ed583ec91f82be6f449af4562 (diff)
downloadmodel01-firmware-a457f37155c2c9ee2703558c776053514ab0cd73.tar.gz
model01-firmware-a457f37155c2c9ee2703558c776053514ab0cd73.tar.bz2
model01-firmware-a457f37155c2c9ee2703558c776053514ab0cd73.zip
Switch from the NumLock library to the NumPad library.
This new plugin lets us use a more standard layer lock to get into the numpad mode and doesn't depend on the system numlock feature quite as much
-rw-r--r--Model01-Firmware.ino14
1 files changed, 7 insertions, 7 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino
index 5f4d5e8..f01cdd3 100644
--- a/Model01-Firmware.ino
+++ b/Model01-Firmware.ino
@@ -25,8 +25,8 @@
// Support for controlling the keyboard's LEDs
#include "Kaleidoscope-LEDControl.h"
-// Support for "Numlock" mode, which is mostly just the Numlock specific LED mode
-#include "Kaleidoscope-Numlock.h"
+// Support for "Numpad" mode, which is mostly just the Numpad specific LED mode
+#include "Kaleidoscope-NumPad.h"
// Support for an "LED off mode"
#include "LED-Off.h"
@@ -134,7 +134,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
Key_LeftControl, Key_Backspace, Key_LeftGui, Key_LeftShift,
ShiftToLayer(FUNCTION),
- M(MACRO_ANY), Key_6, Key_7, Key_8, Key_9, Key_0, Key_KeypadNumLock,
+ M(MACRO_ANY), Key_6, Key_7, Key_8, Key_9, Key_0, LockLayer(NUMPAD),
Key_Enter, Key_Y, Key_U, Key_I, Key_O, Key_P, Key_Equals,
Key_H, Key_J, Key_K, Key_L, Key_Semicolon, Key_Quote,
Key_RightAlt, Key_N, Key_M, Key_Comma, Key_Period, Key_Slash, Key_Minus,
@@ -299,9 +299,9 @@ void setup() {
// The stalker effect lights up the keys you've pressed recently
&StalkerEffect,
- // The numlock plugin is responsible for lighting up the 'numpad' mode
+ // The numpad plugin is responsible for lighting up the 'numpad' mode
// with a custom LED effect
- &NumLock,
+ &NumPad,
// The macros plugin adds support for macros
&Macros,
@@ -310,9 +310,9 @@ void setup() {
&MouseKeys
);
- // While we hope to improve this in the future, the NumLock plugin
+ // While we hope to improve this in the future, the NumPad plugin
// needs to be explicitly told which keymap layer is your numpad layer
- NumLock.numPadLayer = NUMPAD;
+ NumPad.numPadLayer = NUMPAD;
// We configure the AlphaSquare effect to use RED letters
AlphaSquare.color = { 255, 0, 0 };