summaryrefslogtreecommitdiff
path: root/keyboards/keycapsss/plaid_pad/keymaps/default/keymap.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-05-14 02:34:21 +0000
committerQMK Bot <hello@qmk.fm>2021-05-14 02:34:21 +0000
commit5f9906ecccbaec08b6cf3131f4f4e8c977b5b87f (patch)
tree05af7cc9b4b0748bee39184d67a7d35c2f1b25c1 /keyboards/keycapsss/plaid_pad/keymaps/default/keymap.c
parent16c45903961b20a588d9f968b161d90c7acb51b3 (diff)
parent8f4603dd734f5d70e9a89a5150821acd0dc77f7c (diff)
downloadqmk_firmware-5f9906ecccbaec08b6cf3131f4f4e8c977b5b87f.tar.gz
qmk_firmware-5f9906ecccbaec08b6cf3131f4f4e8c977b5b87f.zip
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/keycapsss/plaid_pad/keymaps/default/keymap.c')
-rw-r--r--keyboards/keycapsss/plaid_pad/keymaps/default/keymap.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/keyboards/keycapsss/plaid_pad/keymaps/default/keymap.c b/keyboards/keycapsss/plaid_pad/keymaps/default/keymap.c
index 59031c91d2..18f0ac49a0 100644
--- a/keyboards/keycapsss/plaid_pad/keymaps/default/keymap.c
+++ b/keyboards/keycapsss/plaid_pad/keymaps/default/keymap.c
@@ -22,10 +22,26 @@ LAYOUT_ortho_4x4(
};
-// Set led state during powerup
+
+// Set led state during power-up
+// There is also a LED_GREEN
+// Only for Rev1 & Rev2
+#ifdef LED_RED
void keyboard_post_init_user(void) {
writePinHigh(LED_RED);
}
+#endif
+
+
+// Rev3 and above only
+#ifdef OLED_DRIVER_ENABLE
+void oled_task_user(void) {
+ oled_write_ln_P(PSTR("Plaid-Pad ///////////"), false);
+}
+#endif
+
+
+#ifdef ENCODER_ENABLE
void encoder_update_user(uint8_t index, bool clockwise) {
/*
@@ -71,3 +87,5 @@ Rev1.1 Rev1
}
}
}
+
+#endif