summaryrefslogtreecommitdiffstats
path: root/keyboards/zen/rev2/rules.mk
diff options
context:
space:
mode:
authorXScorpion2 <rcalt2vt@gmail.com>2019-04-15 06:29:50 +0200
committerDrashna Jaelre <drashna@live.com>2019-04-15 06:29:50 +0200
commitffc82ebdb2ee00c14dd225eb057d209d4584a623 (patch)
tree8b6fdf04546b52ce810e28bf1183e35ec628cc7e /keyboards/zen/rev2/rules.mk
parent49746830402cc0e1c0227c6c3c06ebc22fcd016c (diff)
downloadqmk_firmware-ffc82ebdb2ee00c14dd225eb057d209d4584a623.tar.gz
qmk_firmware-ffc82ebdb2ee00c14dd225eb057d209d4584a623.tar.xz
[Keyboard] Zen keyboard update for Rev2 (#5522)
* Updated Zen keyboard for rev2 support * Fixing r1 compile errors * PR feedback and changes for Proton-C compile errors
Diffstat (limited to 'keyboards/zen/rev2/rules.mk')
-rw-r--r--keyboards/zen/rev2/rules.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/keyboards/zen/rev2/rules.mk b/keyboards/zen/rev2/rules.mk
new file mode 100644
index 000000000..d1fe41052
--- /dev/null
+++ b/keyboards/zen/rev2/rules.mk
@@ -0,0 +1,14 @@
+ENCODER_ENABLE = yes
+
+OLED_DRIVER_ENABLE = no
+OLED_ROTATE90 = yes
+
+# Setup so that OLED and 90 degree rotation can be turned on/off easily
+# with "OLED_DRIVER_ENABLE = yes" or "OLED_ROTATE90 = no" in user's rules.mk file
+ifeq ($(strip $(OLED_DRIVER_ENABLE)), yes)
+ # Custom local font file
+ OPT_DEFS += -DOLED_FONT_H=\"common/glcdfont.c\"
+ ifeq ($(strip $(OLED_DRIVER_ENABLE)), yes)
+ OPT_DEFS += -DOLED_ROTATE90
+ endif
+endif