File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
examples/Devices/Keyboardio/Model100 Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments