Skip to content

Commit b37f829

Browse files
committed
Model100: Enable the AutoShift & AutoShiftConfig plugins by default
This changes the EEPROM layout. Fixes the Kaleidoscope parts of keyboardio/Chrysalis#681. Signed-off-by: Gergely Nagy <[email protected]>
1 parent a57abb6 commit b37f829

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

examples/Devices/Keyboardio/Model100/Model100.ino

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@
100100
// Support for the GeminiPR Stenography protocol
101101
#include "Kaleidoscope-Steno.h"
102102

103+
// Support for using long-press to auto-shift keys
104+
#include "Kaleidoscope-AutoShift.h"
105+
103106
/** This 'enum' is a list of all the macros used by the Model 100's firmware
104107
* The names aren't particularly important. What is important is that each
105108
* is unique.
@@ -601,7 +604,11 @@ KALEIDOSCOPE_INIT_PLUGINS(
601604

602605
// Enables the GeminiPR Stenography protocol. Unused by default, but with the
603606
// plugin enabled, it becomes configurable - and then usable - via Chrysalis.
604-
GeminiPR);
607+
GeminiPR,
608+
609+
// Allows using long-press to auto-shift keys (configurable via Chrysalis).
610+
AutoShift,
611+
AutoShiftConfig);
605612

606613
/** The 'setup' function is one of the two standard Arduino sketch functions.
607614
* It's called when your keyboard first powers up. This is where you set up
@@ -669,6 +676,10 @@ void setup() {
669676
// firmware starts with LED effects off. This avoids over-taxing devices that
670677
// don't have a lot of power to share with USB devices
671678
DefaultLEDModeConfig.activateLEDModeIfUnconfigured(&LEDOff);
679+
680+
// Unless configured otherwise, we want to have the long-press auto-shifting
681+
// feature turned off, to avoid surprises.
682+
AutoShiftConfig.disableAutoShiftIfUnconfigured();
672683
}
673684

674685
/** loop is the second of the standard Arduino sketch functions.

0 commit comments

Comments
 (0)