summaryrefslogtreecommitdiff
path: root/keyboards/westfoxtrot/prophet/prophet.c
diff options
context:
space:
mode:
authorCable Car Designs <17062872+westfoxtrot@users.noreply.github.com>2020-06-09 19:37:41 +0100
committerGitHub <noreply@github.com>2020-06-09 11:37:41 -0700
commitb83fb9eb711ea8c7b064a660bc20b62f4d812bd4 (patch)
tree70257e88a1b7a0b231ac778bdb7ffcd87d376d74 /keyboards/westfoxtrot/prophet/prophet.c
parent3736db6081ac75ed425fde5ff52deab78d27b650 (diff)
[Keyboard] add prophet support (#9275)
* add prophet support * Update keyboards/westfoxtrot/prophet/config.h * Update keyboards/westfoxtrot/prophet/rules.mk * Update keyboards/westfoxtrot/prophet/config.h * Update keyboards/westfoxtrot/prophet/prophet.c * Update keyboards/westfoxtrot/prophet/readme.md * Update keyboards/westfoxtrot/prophet/readme.md * Update keyboards/westfoxtrot/prophet/keymaps/default/keymap.c * Update keyboards/westfoxtrot/prophet/keymaps/default/keymap.c * Update keyboards/westfoxtrot/prophet/keymaps/via/keymap.c * Update keyboards/westfoxtrot/prophet/keymaps/via/keymap.c * Update keyboards/westfoxtrot/prophet/keymaps/via/keymap.c * Update keyboards/westfoxtrot/prophet/keymaps/via/keymap.c * remove bootloader_defs fixed via keymap * Update keyboards/westfoxtrot/prophet/prophet.h * Update keyboards/westfoxtrot/prophet/keymaps/default/keymap.c * Update keyboards/westfoxtrot/prophet/keymaps/default/keymap.c * Update keyboards/westfoxtrot/prophet/keymaps/via/keymap.c * Update keyboards/westfoxtrot/prophet/keymaps/via/keymap.c * Update keyboards/westfoxtrot/prophet/keymaps/via/keymap.c * changed vendor id * changed prophet.c
Diffstat (limited to 'keyboards/westfoxtrot/prophet/prophet.c')
-rw-r--r--keyboards/westfoxtrot/prophet/prophet.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/keyboards/westfoxtrot/prophet/prophet.c b/keyboards/westfoxtrot/prophet/prophet.c
new file mode 100644
index 0000000000..6fdfd63cdb
--- /dev/null
+++ b/keyboards/westfoxtrot/prophet/prophet.c
@@ -0,0 +1,19 @@
+#include "prophet.h"
+
+void keyboard_pre_init_kb (void) {
+ setPinOutput(B12);
+ setPinOutput(B13);
+}
+
+bool led_update_kb(led_t led_state) {
+ bool res = led_update_user(led_state);
+ if(res) {
+ writePin(B13, led_state.caps_lock);
+ }
+ return res;
+}
+
+__attribute__((weak)) layer_state_t layer_state_set_user(layer_state_t state) {
+ writePin(B12, layer_state_cmp(state, 1));
+ return state;
+}