summaryrefslogtreecommitdiff
path: root/keyboards/planck/keymaps/ttys0/config.h
diff options
context:
space:
mode:
authorSean Johnson <sean@skj.dev>2021-05-08 22:00:11 -0500
committerGitHub <noreply@github.com>2021-05-08 20:00:11 -0700
commitdf57590ec64f1fc6d3c4163ba60be96305339113 (patch)
treebf3c4f5de7167f2e348afef46fdf4cdb05d3f702 /keyboards/planck/keymaps/ttys0/config.h
parentb7fe24923e29218b15233163d9fe0ac5f332d3fc (diff)
downloadqmk_firmware-df57590ec64f1fc6d3c4163ba60be96305339113.tar.gz
qmk_firmware-df57590ec64f1fc6d3c4163ba60be96305339113.zip
add ttys0's planck and preonic keymaps (#10560)
* resynced with upstream, and adjusted keymap layout for planck * updated keyboard layout Signed-off-by: Sean Johnson <sean@ttys0.net> * swapped out bspc for del on symb layer Signed-off-by: Sean Johnson <sean@ttys0.net> * fixed typo with brightness media keys * turns out my brightness config was correct, it was macOS that had gone sideways * updated to bring in line with requirements for merging into upstream * removed redundant config from rules.mk moved media controls to FUNC layer for Planck layout * added GPL2+ compatible license header Signed-off-by: Sean Johnson <sean@skj.dev> * removed unused MIDI comment Signed-off-by: Sean Johnson <sean@skj.dev> * removed extraneous MIDI comments * removed extraneous comments
Diffstat (limited to 'keyboards/planck/keymaps/ttys0/config.h')
-rw-r--r--keyboards/planck/keymaps/ttys0/config.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/keyboards/planck/keymaps/ttys0/config.h b/keyboards/planck/keymaps/ttys0/config.h
new file mode 100644
index 0000000000..2c7d3aeecd
--- /dev/null
+++ b/keyboards/planck/keymaps/ttys0/config.h
@@ -0,0 +1,24 @@
+/* Copyright 2021 Sean Johnson
+ *
+ * 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
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#pragma once
+
+#ifdef AUDIO_ENABLE
+ #define STARTUP_SONG SONG(COLEMAK_SOUND)
+#endif
+
+// Most tactile encoders have detents every 4 stages
+#define ENCODER_RESOLUTION 4