summaryrefslogtreecommitdiff
path: root/keyboards/keycapsss/plaid_pad/keymaps/via
diff options
context:
space:
mode:
authorBen <BenRoe@users.noreply.github.com>2021-05-14 04:33:36 +0200
committerGitHub <noreply@github.com>2021-05-13 19:33:36 -0700
commit8f4603dd734f5d70e9a89a5150821acd0dc77f7c (patch)
treea4aee4420f3c2c0d3fcabf3b5e7aabfd7e3c7f9d /keyboards/keycapsss/plaid_pad/keymaps/via
parentbfbbb21197bec32079dbb4147ca75770c947cad4 (diff)
[Keyboard] Add Plaid-Pad Rev3 and oled keymap (#12464)
Co-authored-by: Erovia <Erovia@users.noreply.github.com>
Diffstat (limited to 'keyboards/keycapsss/plaid_pad/keymaps/via')
-rw-r--r--keyboards/keycapsss/plaid_pad/keymaps/via/keymap.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/keyboards/keycapsss/plaid_pad/keymaps/via/keymap.c b/keyboards/keycapsss/plaid_pad/keymaps/via/keymap.c
index 1b1d59e3e9..0593d419b5 100644
--- a/keyboards/keycapsss/plaid_pad/keymaps/via/keymap.c
+++ b/keyboards/keycapsss/plaid_pad/keymaps/via/keymap.c
@@ -49,11 +49,26 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ),
};
-// Set LED1 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) {
/*
Rev1.1 Rev1
@@ -98,3 +113,4 @@ Rev1.1 Rev1
}
}
}
+#endif