Skip to content

Instantly share code, notes, and snippets.

@benshine
Last active December 7, 2017 05:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benshine/64ecb605bc822bd90ac686e66a02b3d4 to your computer and use it in GitHub Desktop.
Save benshine/64ecb605bc822bd90ac686e66a02b3d4 to your computer and use it in GitHub Desktop.
@keyboardio Model01 config for programer dvorak
See https://github.com/benshine/Model01-Firmware/blob/master/Model01-Firmware.ino for the current version.
@algernon
Copy link

algernon commented Nov 7, 2017

FWIW, you can simplify the code a bit by inlining some of the macros. For example:

case MACRO_PD_EXCLAMATION:
  if (keyToggledOn(keyState)) {
      return Macros.type(PSTR("!"));
    }
    break;

This could be written as LSHIFT(Key_1) right in the keymap. Fewer lines, and a tiny bit better performance too. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment