From 7c421d9fd45ed31f4b7cacc7492bf938196d66ba Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 4 Mar 2024 11:54:06 -0800 Subject: [PATCH] Remove the factory test mode from the Model 01 sketch. We're quite space-constrained on the Model 01 and the factory test mode takes up a lot of space. --- .../Devices/Keyboardio/Model01/Model01.ino | 39 ++++++++----------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/examples/Devices/Keyboardio/Model01/Model01.ino b/examples/Devices/Keyboardio/Model01/Model01.ino index d9cb441b00..04e3a654fb 100644 --- a/examples/Devices/Keyboardio/Model01/Model01.ino +++ b/examples/Devices/Keyboardio/Model01/Model01.ino @@ -26,6 +26,9 @@ // Support for querying the firmware version via Focus #include "Kaleidoscope-FirmwareVersion.h" +// Support for setting the names of layers via Chrysalis +// #include "Kaleidoscope-LayerNames.h" + // Support for keys that move the mouse #include "Kaleidoscope-MouseKeys.h" @@ -36,6 +39,9 @@ // Support for controlling the keyboard's LEDs #include "Kaleidoscope-LEDControl.h" +// Support for setting and saving the default LED mode +// #include "Kaleidoscope-DefaultLEDModeConfig.h" + // Support for "Numpad" mode, which is mostly just the Numpad specific LED mode #include "Kaleidoscope-NumPad.h" @@ -61,9 +67,6 @@ // Support for an LED mode that lets one configure per-layer color maps #include "Kaleidoscope-Colormap.h" -// Support for Keyboardio's internal keyboard testing mode -#include "Kaleidoscope-HardwareTestMode.h" - // Support for host power management (suspend & wakeup) #include "Kaleidoscope-HostPowerManagement.h" @@ -73,6 +76,13 @@ // Support for secondary actions (one action when tapped, another when held) #include "Kaleidoscope-Qukeys.h" +// Support for SpaceCadet keys +// #include "Kaleidoscope-SpaceCadet.h" + +// Support for one-shot modifiers and layer keys +// #include "Kaleidoscope-OneShot.h" +// #include "Kaleidoscope-Escape-OneShot.h" + // Support for USB quirks, like changing the key state report protocol #include "Kaleidoscope-USB-Quirks.h" @@ -398,23 +408,13 @@ static void toggleKeyboardProtocol(uint8_t combo_index) { USBQuirks.toggleKeyboardProtocol(); } -/** - * This enters the hardware test mode - */ -static void enterHardwareTestMode(uint8_t combo_index) { - HardwareTestMode.runTests(); -} - - /** Magic combo list, a list of key combo and action pairs the firmware should * recognise. */ USE_MAGIC_COMBOS({.action = toggleKeyboardProtocol, // Left Fn + Esc + Shift - .keys = {R3C6, R2C6, R3C7}}, - {.action = enterHardwareTestMode, - // Left Fn + Prog + LED - .keys = {R3C6, R0C0, R0C6}}); + .keys = {R3C6, R2C6, R3C7} + }); // First, tell Kaleidoscope which plugins you want to use. // The order can be important. For example, LED effects are @@ -563,11 +563,7 @@ KALEIDOSCOPE_INIT_PLUGINS( // comfortable - or able - to do automatically, but can be useful // nevertheless. Such as toggling the key report protocol between Boot (used // by BIOSes) and Report (NKRO). - USBQuirks, - - // The hardware test mode, which can be invoked by tapping Prog, LED and the - // left Fn button at the same time. - HardwareTestMode //, + USBQuirks ); /** The 'setup' function is one of the two standard Arduino sketch functions. @@ -587,9 +583,6 @@ void setup() { LEDRainbowEffect.brightness(150); LEDRainbowWaveEffect.brightness(150); - // Set the action key the test mode should listen for to Left Fn - HardwareTestMode.setActionKey(R3C6); - // We want to make sure that the firmware starts with LED effects off // This avoids over-taxing devices that don't have a lot of power to share // with USB devices