Skip to content

Commit

Permalink
Model100: Enable the AutoShift & AutoShiftConfig plugins by default
Browse files Browse the repository at this point in the history
This changes the EEPROM layout.

Fixes the Kaleidoscope parts of keyboardio/Chrysalis#681.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
  • Loading branch information
algernon committed Oct 30, 2022
1 parent a57abb6 commit b37f829
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion examples/Devices/Keyboardio/Model100/Model100.ino
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
// Support for the GeminiPR Stenography protocol
#include "Kaleidoscope-Steno.h"

// Support for using long-press to auto-shift keys
#include "Kaleidoscope-AutoShift.h"

/** This 'enum' is a list of all the macros used by the Model 100's firmware
* The names aren't particularly important. What is important is that each
* is unique.
Expand Down Expand Up @@ -601,7 +604,11 @@ KALEIDOSCOPE_INIT_PLUGINS(

// Enables the GeminiPR Stenography protocol. Unused by default, but with the
// plugin enabled, it becomes configurable - and then usable - via Chrysalis.
GeminiPR);
GeminiPR,

// Allows using long-press to auto-shift keys (configurable via Chrysalis).
AutoShift,
AutoShiftConfig);

/** The 'setup' function is one of the two standard Arduino sketch functions.
* It's called when your keyboard first powers up. This is where you set up
Expand Down Expand Up @@ -669,6 +676,10 @@ void setup() {
// firmware starts with LED effects off. This avoids over-taxing devices that
// don't have a lot of power to share with USB devices
DefaultLEDModeConfig.activateLEDModeIfUnconfigured(&LEDOff);

// Unless configured otherwise, we want to have the long-press auto-shifting
// feature turned off, to avoid surprises.
AutoShiftConfig.disableAutoShiftIfUnconfigured();
}

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

0 comments on commit b37f829

Please sign in to comment.