diff options
author | MechMerlin <[email protected]> | 2019-09-18 18:42:53 -0700 |
---|---|---|
committer | Drashna Jaelre <[email protected]> | 2019-09-18 18:42:53 -0700 |
commit | 7a5a2591ebc797d9670366a45396afed48c5fc6f (patch) | |
tree | aa41b7c4981dd8988dc6d59ad831100715c40ed4 /keyboards/1upkeyboards/1up60hte/1up60hte.c | |
parent | 7142b604058483a99a5fd476d5c95aa6ac52a1f8 (diff) | |
download | qmk_firmware-7a5a2591ebc797d9670366a45396afed48c5fc6f.tar.gz qmk_firmware-7a5a2591ebc797d9670366a45396afed48c5fc6f.zip |
[Keyboard] 1up60hte cleanup + bugfix (#6763)
* move caps lock led to keyboard level so even QMK Configurator users have access to it
* set bootloader correctly to atmel-dfu
* clean up extra carriage return
Diffstat (limited to 'keyboards/1upkeyboards/1up60hte/1up60hte.c')
-rw-r--r-- | keyboards/1upkeyboards/1up60hte/1up60hte.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/keyboards/1upkeyboards/1up60hte/1up60hte.c b/keyboards/1upkeyboards/1up60hte/1up60hte.c index 460e42a0e5..3af0e9d400 100644 --- a/keyboards/1upkeyboards/1up60hte/1up60hte.c +++ b/keyboards/1upkeyboards/1up60hte/1up60hte.c @@ -16,3 +16,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "1up60hte.h" + +void keyboard_pre_init_kb(void) { + // put your keyboard start-up code here + // runs once when the firmware starts up + setPinOutput(B6); + keyboard_pre_init_user(); +} + +void led_set_kb(uint8_t usb_led) { + if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { + writePinLow(B6); + } else { + writePinHigh(B6); + } + led_set_user(usb_led); +}
\ No newline at end of file |