aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/tg4x/tg4x.h
diff options
context:
space:
mode:
authorMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-11-14 10:52:55 -0800
committerDrashna Jaelre <drashna@live.com>2019-11-14 10:52:55 -0800
commit44df08746a97d7177a9ad918e4d5da3a5cf437d3 (patch)
tree2c7f6124aacc517753f34e83dcb22f83f255b43f /keyboards/tg4x/tg4x.h
parent661462218b54044bb41a55be70df2c2d2ac25242 (diff)
downloadfirmware-44df08746a97d7177a9ad918e4d5da3a5cf437d3.tar.gz
firmware-44df08746a97d7177a9ad918e4d5da3a5cf437d3.tar.bz2
firmware-44df08746a97d7177a9ad918e4d5da3a5cf437d3.zip
[Keyboard] Add TG4x (#7351)
* initial commit * add pins and matrix * add an appropriate keymap * set bootloader to caterina * add QMK Configurator support * turn on RGB and link time optimization * add rgb pin * update readme on rgb underglow info * Update keyboards/tg4x/readme.md Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update keyboards/tg4x/readme.md Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update keyboards/tg4x/readme.md Co-Authored-By: fauxpark <fauxpark@gmail.com> * setting product id to 1 to match original code
Diffstat (limited to 'keyboards/tg4x/tg4x.h')
-rw-r--r--keyboards/tg4x/tg4x.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/keyboards/tg4x/tg4x.h b/keyboards/tg4x/tg4x.h
new file mode 100644
index 000000000..80dc40238
--- /dev/null
+++ b/keyboards/tg4x/tg4x.h
@@ -0,0 +1,21 @@
+#pragma once
+
+#include "quantum.h"
+
+#define ___ KC_NO
+
+#define LAYOUT( \
+ k00, k01, k02, k03, k04, k05, k06, k40, k41, k42, k43, k44, k45, \
+ k10, k11, k12, k13, k14, k15, k16, k50, k51, k52, k53, k54, \
+ k20, k21, k22, k23, k24, k25, k26, k60, k61, k62, k63, k64, \
+ k30, k31, k32, k34, k35, k71, k72, k73, k74 \
+){ \
+ { k00, k01, k02, k03, k04, k05, k06 }, \
+ { k10, k11, k12, k13, k14, k15, k16 }, \
+ { k20, k21, k22, k23, k24, k25, k26 }, \
+ { k30, k31, k32, ___, k34, k35, ___ }, \
+ { k40, k41, k42, k43, k44, k45, ___ }, \
+ { k50, k51, k52, k53, k54, ___, ___ }, \
+ { k60, k61, k62, k63, k64, ___, ___ }, \
+ { ___, k71, k72, k73, k74, ___, ___ } \
+}