diff options
author | moyi4681 <[email protected]> | 2019-10-31 14:00:46 +0800 |
---|---|---|
committer | Drashna Jaelre <[email protected]> | 2019-10-30 23:00:46 -0700 |
commit | 934fa5183e95ad98e2e744c48e524308e940f799 (patch) | |
tree | 06a9f2f7886becea92f6344d30fd47149e7030d3 /keyboards/xbows/knight/knight.c | |
parent | 74252e03cfd2ee3d7ba823fb4c3ce522f43e79a0 (diff) | |
download | qmk_firmware-934fa5183e95ad98e2e744c48e524308e940f799.tar.gz qmk_firmware-934fa5183e95ad98e2e744c48e524308e940f799.zip |
[Keyboard] add xbows woody and knight keyboards (#7112)
* add xbows knight and woody keyboards
add xbows knight and woody keyboards
* Update rules.mk
* Update keyboards/xbows/knight/readme.md
Co-Authored-By: MechMerlin <[email protected]>
* Update knight.c
* Update keyboards/xbows/knight/keymaps/default/keymap.c
Co-Authored-By: noroadsleft <[email protected]>
* Update keyboards/xbows/knight/readme.md
Co-Authored-By: noroadsleft <[email protected]>
* Update keyboards/xbows/knight/rules.mk
Co-Authored-By: noroadsleft <[email protected]>
* Update keyboards/xbows/knight/rules.mk
Co-Authored-By: noroadsleft <[email protected]>
* Update keyboards/xbows/woody/readme.md
Co-Authored-By: noroadsleft <[email protected]>
* Update keyboards/xbows/knight/rules.mk
Co-Authored-By: noroadsleft <[email protected]>
* Update rules.mk
* Update keymap.c
* Update keyboards/xbows/woody/rules.mk
Co-Authored-By: Drashna Jaelre <[email protected]>
* Update keyboards/xbows/knight/keymaps/default/keymap.c
Co-Authored-By: Drashna Jaelre <[email protected]>
* Update keymap.c
* Update keyboards/xbows/knight/readme.md
Co-Authored-By: noroadsleft <[email protected]>
* Update keyboards/xbows/knight/rules.mk
Co-Authored-By: noroadsleft <[email protected]>
* Update keyboards/xbows/woody/rules.mk
Co-Authored-By: noroadsleft <[email protected]>
* Update keyboards/xbows/woody/rules.mk
Co-Authored-By: noroadsleft <[email protected]>
Diffstat (limited to 'keyboards/xbows/knight/knight.c')
-rw-r--r-- | keyboards/xbows/knight/knight.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/keyboards/xbows/knight/knight.c b/keyboards/xbows/knight/knight.c new file mode 100644 index 0000000000..1b8adc8c2a --- /dev/null +++ b/keyboards/xbows/knight/knight.c @@ -0,0 +1,19 @@ +#include "knight.h" +void matrix_init_kb(void) { + setPinOutput(D1); + setPinOutput(E2); + matrix_init_user(); +}; +void led_set_kb(uint8_t usb_led) { + if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) { + writePinHigh(D1); + } else { + writePinLow(D1); + } + if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { + writePinHigh(E2); + } else { + writePinLow(E2); + } + led_set_user(usb_led); +} |