summaryrefslogtreecommitdiffstats
path: root/users/mverteuil
diff options
context:
space:
mode:
authorM. de Verteuil <mverteuil@users.noreply.github.com>2020-01-18 14:24:56 -0500
committerDrashna Jaelre <drashna@live.com>2020-01-18 11:24:56 -0800
commit9b9a0f0bcb791e3652627a642f19f7cebd30955d (patch)
tree66b41cbcbd8a6b8bd61d52cc4983b90d99e88465 /users/mverteuil
parent6b17067b1571bd19023e175980b8d74765ce7cfe (diff)
[Keymap] Added mverteuil keymaps and userspace common code (#7876)
* Added mverteuil content - Userspace - Knops keymap - Preonic keymaps * Simplified and replaced some magic numbers * Convert tabs to spaces * Clean up LED handling, better animation, better layer init * Use get_highest_layer per @drashna suggestion * Reorder prototypes/reformat * Simplified/more expessive and fixed initial layer LED * Remove changes to git ignored files
Diffstat (limited to 'users/mverteuil')
-rw-r--r--users/mverteuil/.gitignore1
-rw-r--r--users/mverteuil/mverteuil.c2
-rw-r--r--users/mverteuil/mverteuil.h21
-rw-r--r--users/mverteuil/rules.mk1
4 files changed, 25 insertions, 0 deletions
diff --git a/users/mverteuil/.gitignore b/users/mverteuil/.gitignore
new file mode 100644
index 0000000000..785f649dc6
--- /dev/null
+++ b/users/mverteuil/.gitignore
@@ -0,0 +1 @@
+copyright.h
diff --git a/users/mverteuil/mverteuil.c b/users/mverteuil/mverteuil.c
new file mode 100644
index 0000000000..a3afc417fa
--- /dev/null
+++ b/users/mverteuil/mverteuil.c
@@ -0,0 +1,2 @@
+#include QMK_KEYBOARD_H
+#include "mverteuil.h"
diff --git a/users/mverteuil/mverteuil.h b/users/mverteuil/mverteuil.h
new file mode 100644
index 0000000000..1119b75adf
--- /dev/null
+++ b/users/mverteuil/mverteuil.h
@@ -0,0 +1,21 @@
+#if AUDIO_ENABLE
+# if __has_include("copyright.h")
+# include "copyright.h"
+# endif
+
+# define LOWER_SOUND S__NOTE(_EF5), W__NOTE(_REST), Q__NOTE(_E4)
+# define NUMPAD_SOUND S__NOTE(_DF5), S__NOTE(_REST), S__NOTE(_C6)
+# define RAISE_SOUND S__NOTE(_E4), W__NOTE(_REST), Q__NOTE(_EF5)
+
+# define AUDIO_ON_SONG SONG(ZELDA_PUZZLE)
+# define LAYER_FUNCROW_ON_SONG SONG(COLEMAK_SOUND)
+# define LAYER_FUNCROW_OFF_SONG SONG(QWERTY_SOUND)
+# define LAYER_NMPAD_SONG SONG(NUMPAD_SOUND)
+# define LAYER_LOWER_SONG SONG(LOWER_SOUND)
+# define LAYER_RAISE_SONG SONG(RAISE_SOUND)
+#else
+// No-op version of PLAY_SONG instead of many checks for AUDIO_ENABLED
+# ifndef PLAY_SONG
+# define PLAY_SONG(ARG) // ARG
+# endif
+#endif
diff --git a/users/mverteuil/rules.mk b/users/mverteuil/rules.mk
new file mode 100644
index 0000000000..bfc4b1ed14
--- /dev/null
+++ b/users/mverteuil/rules.mk
@@ -0,0 +1 @@
+SRC += mverteuil.c