summaryrefslogtreecommitdiffstats
path: root/keyboards/atom47/rev2/atom47.h
diff options
context:
space:
mode:
authorMaarten Dekkers <maartenwut@gmail.com>2018-04-06 01:16:35 +0200
committerJack Humbert <jack.humb@gmail.com>2018-04-06 01:16:35 +0200
commitd777a058642326921785961d6a2e10f2eb826c44 (patch)
treeb8577b08659a3318204296f0dd6cae6866cb0ac5 /keyboards/atom47/rev2/atom47.h
parent7bbc9ccc31b2bc4dda8dc4c000df48a024f072a9 (diff)
downloadqmk_firmware-d777a058642326921785961d6a2e10f2eb826c44.tar.gz
qmk_firmware-d777a058642326921785961d6a2e10f2eb826c44.tar.xz
Add support for rev3 of the Atom47 (#2672)
* Added support for rev3 of the Atom47 * Updated Atom47 readme's * Fix redefine error on rev2 and add maartenwut's keymap * Fix redefine error on LEdiodes keymap
Diffstat (limited to 'keyboards/atom47/rev2/atom47.h')
-rw-r--r--keyboards/atom47/rev2/atom47.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/keyboards/atom47/rev2/atom47.h b/keyboards/atom47/rev2/atom47.h
new file mode 100644
index 000000000..2c19a20cc
--- /dev/null
+++ b/keyboards/atom47/rev2/atom47.h
@@ -0,0 +1,25 @@
+#ifndef ATOM47_H
+#define ATOM47_H
+
+#include "quantum.h"
+
+// readability
+#define XXX KC_NO
+
+#define KEYMAP_ANSI( \
+ k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, \
+ k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1c, \
+ k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2c, \
+ k30, k31, k32, k33, k34, k36, k38, k39, k3a, k3c \
+) \
+{ \
+ {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c}, \
+ {k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, XXX, k1c}, \
+ {k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, XXX, k2c}, \
+ {k30, k31, k32, k33, k34, XXX, k36, XXX, k38, k39, k3a, XXX, k3c} \
+}
+
+void matrix_init_user(void);
+void matrix_scan_user(void);
+
+#endif