Update some of the factory firmware sketches to include more plugins

This updates the ErgoDox EZ, Splitograhpy, Technomancy Atreus, and Keyboardio
Atreus sketches to include more of the plugins described in
docs/chrysalis-firmware.md.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
examples/factory-firmware
Gergely Nagy 3 years ago
parent 6aef9b99bb
commit a5d043b2b3
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -1,6 +1,6 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* ErgoDox -- Chrysalis-enabled Sketch for ErgoDox-compatible boards (minimal) * ErgoDox -- Chrysalis-enabled Sketch for ErgoDox-compatible boards
* Copyright (C) 2019, 2020 Keyboard.io, Inc * Copyright (C) 2019-2022 Keyboard.io, Inc
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -29,6 +29,9 @@
#include "Kaleidoscope-FocusSerial.h" #include "Kaleidoscope-FocusSerial.h"
#include "Kaleidoscope-MouseKeys.h" #include "Kaleidoscope-MouseKeys.h"
#include "Kaleidoscope-Qukeys.h" #include "Kaleidoscope-Qukeys.h"
#include "Kaleidoscope-OneShot.h"
#include "Kaleidoscope-Escape-OneShot.h"
#include "Kaleidoscope-DynamicMacros.h"
// clang-format off // clang-format off
KEYMAPS( KEYMAPS(
@ -114,6 +117,10 @@ KALEIDOSCOPE_INIT_PLUGINS(
FocusEEPROMCommand, FocusEEPROMCommand,
FocusSettingsCommand, FocusSettingsCommand,
Qukeys, Qukeys,
OneShot,
EscapeOneShot,
EscapeOneShotConfig,
DynamicMacros,
MouseKeys); MouseKeys);
void blinkAllStatusLEDs() { void blinkAllStatusLEDs() {
@ -136,6 +143,7 @@ void setup() {
Kaleidoscope.setup(); Kaleidoscope.setup();
EEPROMKeymap.setup(5); EEPROMKeymap.setup(5);
DynamicMacros.reserve_storage(256);
blinkAllStatusLEDs(); blinkAllStatusLEDs();
} }

@ -1,6 +1,6 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Atreus -- Chrysalis-enabled Sketch for the Keyboardio Atreus * Atreus -- Chrysalis-enabled Sketch for the Keyboardio Atreus
* Copyright (C) 2018, 2019 Keyboard.io, Inc * Copyright (C) 2018-2022 Keyboard.io, Inc
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -28,6 +28,8 @@
#include "Kaleidoscope-Macros.h" #include "Kaleidoscope-Macros.h"
#include "Kaleidoscope-MouseKeys.h" #include "Kaleidoscope-MouseKeys.h"
#include "Kaleidoscope-OneShot.h" #include "Kaleidoscope-OneShot.h"
#include "Kaleidoscope-Escape-OneShot.h"
#include "Kaleidoscope-DynamicMacros.h"
#include "Kaleidoscope-Qukeys.h" #include "Kaleidoscope-Qukeys.h"
#include "Kaleidoscope-SpaceCadet.h" #include "Kaleidoscope-SpaceCadet.h"
@ -108,7 +110,10 @@ KALEIDOSCOPE_INIT_PLUGINS(
Qukeys, Qukeys,
SpaceCadet, SpaceCadet,
OneShot, OneShot,
EscapeOneShot,
EscapeOneShotConfig,
Macros, Macros,
DynamicMacros,
MouseKeys); MouseKeys);
const macro_t *macroAction(uint8_t macro_id, KeyEvent &event) { const macro_t *macroAction(uint8_t macro_id, KeyEvent &event) {
@ -134,8 +139,10 @@ const macro_t *macroAction(uint8_t macro_id, KeyEvent &event) {
void setup() { void setup() {
Kaleidoscope.setup(); Kaleidoscope.setup();
SpaceCadet.disable(); SpaceCadet.disable();
EEPROMKeymap.setup(10); EEPROMKeymap.setup(7);
DynamicMacros.reserve_storage(256);
} }
void loop() { void loop() {

@ -1,6 +1,6 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Splitography-Sketch -- A complete, functional sketch for Splitography * Splitography-Sketch -- Chrysalis-enabled sketch for the Splitography
* Copyright (C) 2018-2020 Gergely Nagy * Copyright (C) 2018-2022 Keyboard.io, Inc
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -19,13 +19,17 @@
* https://github.com/sdothum/qmk_firmware/blob/d865c82efa19beb7cb593e7d3affb2311017833e/keyboards/splitography/keymaps/default/keymap.c * https://github.com/sdothum/qmk_firmware/blob/d865c82efa19beb7cb593e7d3affb2311017833e/keyboards/splitography/keymaps/default/keymap.c
*/ */
#include "Kaleidoscope.h" #include "Kaleidoscope.h"
#include "Kaleidoscope-EEPROM-Settings.h" #include "Kaleidoscope-EEPROM-Settings.h"
#include "Kaleidoscope-EEPROM-Keymap.h" #include "Kaleidoscope-EEPROM-Keymap.h"
#include "Kaleidoscope-FocusSerial.h" #include "Kaleidoscope-FocusSerial.h"
#include "Kaleidoscope-Ranges.h" #include "Kaleidoscope-Ranges.h"
#include "Kaleidoscope-Steno.h" #include "Kaleidoscope-Steno.h"
#include "Kaleidoscope-MouseKeys.h"
#include "Kaleidoscope-Qukeys.h"
#include "Kaleidoscope-OneShot.h"
#include "Kaleidoscope-Escape-OneShot.h"
#include "Kaleidoscope-DynamicMacros.h"
// Layers // Layers
enum { enum {
@ -238,6 +242,12 @@ class MultiSwitcher : public kaleidoscope::Plugin {
kaleidoscope::plugin::MultiSwitcher MultiSwitcher; kaleidoscope::plugin::MultiSwitcher MultiSwitcher;
#include "Kaleidoscope-MouseKeys.h"
#include "Kaleidoscope-Qukeys.h"
#include "Kaleidoscope-OneShot.h"
#include "Kaleidoscope-Escape-OneShot.h"
#include "Kaleidoscope-DynamicMacros.h"
KALEIDOSCOPE_INIT_PLUGINS( KALEIDOSCOPE_INIT_PLUGINS(
GeminiPR, GeminiPR,
MultiSwitcher, MultiSwitcher,
@ -245,11 +255,19 @@ KALEIDOSCOPE_INIT_PLUGINS(
EEPROMSettings, EEPROMSettings,
EEPROMKeymap, EEPROMKeymap,
FocusEEPROMCommand, FocusEEPROMCommand,
FocusSettingsCommand); FocusSettingsCommand,
MouseKeys,
Qukeys,
OneShot,
EscapeOneShot,
EscapeOneShotConfig,
DynamicMacros);
void setup() { void setup() {
Kaleidoscope.setup(); Kaleidoscope.setup();
EEPROMKeymap.setup(6);
EEPROMKeymap.setup(8);
DynamicMacros.reserve_storage(256);
} }
void loop() { void loop() {

@ -1,6 +1,6 @@
/* -*- mode: c++ -*- /* -*- mode: c++ -*-
* Atreus -- Chrysalis-enabled Sketch for Technomancy's Atreus (minimal) * Atreus -- Chrysalis-enabled Sketch for Technomancy's Atreus
* Copyright (C) 2018, 2019, 2020 Keyboard.io, Inc * Copyright (C) 2018-2022 Keyboard.io, Inc
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -22,6 +22,11 @@
#include "Kaleidoscope-EEPROM-Keymap.h" #include "Kaleidoscope-EEPROM-Keymap.h"
#include "Kaleidoscope-FocusSerial.h" #include "Kaleidoscope-FocusSerial.h"
#include "Kaleidoscope-Macros.h" #include "Kaleidoscope-Macros.h"
#include "Kaleidoscope-MouseKeys.h"
#include "Kaleidoscope-OneShot.h"
#include "Kaleidoscope-Escape-OneShot.h"
#include "Kaleidoscope-DynamicMacros.h"
#include "Kaleidoscope-Qukeys.h"
#define MO(n) ShiftToLayer(n) #define MO(n) ShiftToLayer(n)
#define TG(n) LockLayer(n) #define TG(n) LockLayer(n)
@ -94,7 +99,13 @@ KALEIDOSCOPE_INIT_PLUGINS(
Focus, Focus,
FocusEEPROMCommand, FocusEEPROMCommand,
FocusSettingsCommand, FocusSettingsCommand,
Macros); Qukeys,
OneShot,
EscapeOneShot,
EscapeOneShotConfig,
Macros,
DynamicMacros,
MouseKeys);
const macro_t *macroAction(uint8_t macro_id, KeyEvent &event) { const macro_t *macroAction(uint8_t macro_id, KeyEvent &event) {
switch (macro_id) { switch (macro_id) {
@ -114,7 +125,8 @@ const macro_t *macroAction(uint8_t macro_id, KeyEvent &event) {
void setup() { void setup() {
Kaleidoscope.setup(); Kaleidoscope.setup();
EEPROMKeymap.setup(5); EEPROMKeymap.setup(7);
DynamicMacros.reserve_storage(256);
} }
void loop() { void loop() {

Loading…
Cancel
Save