From bd9df627137230a0b333ab48f1e90130404d782b Mon Sep 17 00:00:00 2001 From: Drashna Jael're Date: Tue, 14 Jan 2020 17:51:28 -0800 Subject: Add Oryx keymap, etc --- keyboards/planck/ez/ez.c | 2 +- keyboards/planck/keymaps/oryx/keymap.c | 17 ----------------- keyboards/planck/keymaps/oryx/rules.mk | 1 + 3 files changed, 2 insertions(+), 18 deletions(-) (limited to 'keyboards/planck') diff --git a/keyboards/planck/ez/ez.c b/keyboards/planck/ez/ez.c index 1e8a9d4e12..aca2c4dd5d 100644 --- a/keyboards/planck/ez/ez.c +++ b/keyboards/planck/ez/ez.c @@ -346,7 +346,7 @@ bool music_mask_kb(uint16_t keycode) { } } #endif -#ifdef WEBUSB_ENABLE +#ifdef ORYX_ENABLE static uint16_t loops = 0; static bool is_on = false; diff --git a/keyboards/planck/keymaps/oryx/keymap.c b/keyboards/planck/keymaps/oryx/keymap.c index 46737dbf7b..a1e9ae4636 100644 --- a/keyboards/planck/keymaps/oryx/keymap.c +++ b/keyboards/planck/keymaps/oryx/keymap.c @@ -130,22 +130,5 @@ bool music_mask_user(uint16_t keycode) { } } uint32_t layer_state_set_user(uint32_t state) { - palClearPad(GPIOB, 8); - palClearPad(GPIOB, 9); - uint8_t layer = biton32(state); - switch (layer) { - case _LOWER: - palSetPad(GPIOB, 9); - break; - case _RAISE: - palSetPad(GPIOB, 8); - break; - case _ADJUST: - palSetPad(GPIOB, 9); - palSetPad(GPIOB, 8); - break; - default: - break; - } return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); } diff --git a/keyboards/planck/keymaps/oryx/rules.mk b/keyboards/planck/keymaps/oryx/rules.mk index 8b256e2a9c..27ab9be851 100644 --- a/keyboards/planck/keymaps/oryx/rules.mk +++ b/keyboards/planck/keymaps/oryx/rules.mk @@ -3,3 +3,4 @@ SRC += muse.c # See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file COMMAND_ENABLE = no MOUSEKEY_ENABLE = no +ORYX_ENABLE = yes -- cgit v1.2.3