Skip to content

Instantly share code, notes, and snippets.

@shawn-sterling
Last active February 4, 2020 09:06
Show Gist options
  • Save shawn-sterling/e8e943b37335b27fd9737b3b66f8b50c to your computer and use it in GitHub Desktop.
Save shawn-sterling/e8e943b37335b27fd9737b3b66f8b50c to your computer and use it in GitHub Desktop.
dygma shift-esc
diff -u ./Raise-Firmware.ino Raise-Firmware.ino-shift-esc
--- ./Raise-Firmware.ino 2020-02-04 00:54:36.670580282 -0800
+++ Raise-Firmware.ino-shift-esc 2020-02-04 00:55:41.860409244 -0800
@@ -45,6 +45,7 @@
#include "Kaleidoscope-OneShot.h"
#include "Kaleidoscope-Qukeys.h"
#include "Kaleidoscope-Escape-OneShot.h"
+#include "Kaleidoscope-ShapeShifter.h"
#include "LED-CapsLockLight.h"
#include "EEPROMPadding.h"
@@ -100,6 +101,11 @@
/* Re-enable astyle's indent enforcement */
// *INDENT-ON*
+static const kaleidoscope::plugin::ShapeShifter::dictionary_t shape_shift_dictionary[] PROGMEM = {
+ {Key_Escape, Key_Backtick},
+ {Key_NoKey, Key_NoKey},
+};
+
kaleidoscope::device::dygma::raise::SideFlash<ATTinyFirmware> SideFlash;
void tapDanceAction(uint8_t tap_dance_index, KeyAddr key_addr,
@@ -177,7 +183,8 @@
EscapeOneShot,
Qukeys,
LayerFocus,
- EEPROMUpgrade
+ EEPROMUpgrade,
+ ShapeShifter
);
void setup() {
@@ -198,6 +205,8 @@
EEPROMUpgrade.reserveStorage();
EEPROMUpgrade.upgrade();
+ // Enable shift-esc to be ~
+ ShapeShifter.dictionary = shape_shift_dictionary;
}
void loop() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment