diff --git a/examples/Devices/Keyboardio/Model100/Model100.ino b/examples/Devices/Keyboardio/Model100/Model100.ino index 8eb85b8b..ab10fa8c 100644 --- a/examples/Devices/Keyboardio/Model100/Model100.ino +++ b/examples/Devices/Keyboardio/Model100/Model100.ino @@ -17,11 +17,11 @@ #include "Kaleidoscope.h" // Support for storing the keymap in EEPROM -#include "Kaleidoscope-EEPROM-Settings.h" -#include "Kaleidoscope-EEPROM-Keymap.h" +//#include "Kaleidoscope-EEPROM-Settings.h" +//#include "Kaleidoscope-EEPROM-Keymap.h" // Support for communicating with the host via a simple Serial protocol -#include "Kaleidoscope-FocusSerial.h" +//#include "Kaleidoscope-FocusSerial.h" // Support for keys that move the mouse #include "Kaleidoscope-MouseKeys.h" @@ -425,21 +425,21 @@ USE_MAGIC_COMBOS({.action = toggleKeyboardProtocol, KALEIDOSCOPE_INIT_PLUGINS( // The EEPROMSettings & EEPROMKeymap plugins make it possible to have an // editable keymap in EEPROM. - EEPROMSettings, - EEPROMKeymap, +// EEPROMSettings, +// EEPROMKeymap, // Focus allows bi-directional communication with the host, and is the // interface through which the keymap in EEPROM can be edited. - Focus, + //Focus, // FocusSettingsCommand adds a few Focus commands, intended to aid in // changing some settings of the keyboard, such as the default layer (via the // `settings.defaultLayer` command) - FocusSettingsCommand, + //FocusSettingsCommand, // FocusEEPROMCommand adds a set of Focus commands, which are very helpful in // both debugging, and in backing up one's EEPROM contents. - FocusEEPROMCommand, + // FocusEEPROMCommand, // The boot greeting effect pulses the LED button for 10 seconds after the // keyboard is first connected @@ -485,7 +485,7 @@ KALEIDOSCOPE_INIT_PLUGINS( LEDPaletteTheme, // The Colormap effect makes it possible to set up per-layer colormaps - ColormapEffect, + // ColormapEffect, // The numpad plugin is responsible for lighting up the 'numpad' mode // with a custom LED effect @@ -551,12 +551,12 @@ void setup() { // one wants to use these layers, just set the default layer to one in EEPROM, // by using the `settings.defaultLayer` Focus command, or by using the // `keymap.onlyCustom` command to use EEPROM layers only. - EEPROMKeymap.setup(5); + //EEPROMKeymap.setup(5); // We need to tell the Colormap plugin how many layers we want to have custom // maps for. To make things simple, we set it to five layers, which is how // many editable layers we have (see above). - ColormapEffect.max_layers(5); + //ColormapEffect.max_layers(5); } /** loop is the second of the standard Arduino sketch functions. diff --git a/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.h b/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.h index 4303fae3..70763449 100644 --- a/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.h +++ b/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.h @@ -19,6 +19,8 @@ #ifdef ARDUINO_keyboardio_model_100 +#define _INIT_HID_GETSHORTNAME // warning "TODO: remove this directive once we have HID" + #include #define CRGB(r,g,b) (cRGB){b, g, r} @@ -31,6 +33,7 @@ struct cRGB { #include "kaleidoscope/driver/keyscanner/Base.h" +//TODO #include "kaleidoscope/driver/storage/GD32Flash.h" #include "kaleidoscope/driver/keyboardio/Model100Side.h" #include "kaleidoscope/driver/led/Base.h" #include "kaleidoscope/device/Base.h" @@ -40,6 +43,9 @@ namespace kaleidoscope { namespace device { namespace keyboardio { +// TODO struct Model100StorageProps: kaleidoscope::driver::storage::GD32FlashProps {}; + + struct Model100LEDDriverProps : public kaleidoscope::driver::led::BaseProps { static constexpr uint8_t led_count = 64; static constexpr uint8_t key_led_map[] PROGMEM = { @@ -111,6 +117,9 @@ struct Model100Props : public kaleidoscope::device::BaseProps { typedef Model100LEDDriver LEDDriver; typedef Model100KeyScannerProps KeyScannerProps; typedef Model100KeyScanner KeyScanner; + // TODO typedef Model100StorageProps StorageProps; + // TODO typedef kaleidoscope::driver::storage::GD32Flash Storage; + typedef kaleidoscope::driver::bootloader::gd32::Base BootLoader; static constexpr const char *short_name = "kbio100"; };