diff options
author | Max <[email protected]> | 2017-11-22 15:52:42 +0000 |
---|---|---|
committer | Jack Humbert <[email protected]> | 2017-11-22 10:52:42 -0500 |
commit | dcc363390f47ec23fdbc04bb56bb03a3cbf310e6 (patch) | |
tree | c712e675897af51446632f8b45d688e47d9faa94 /keyboards/daisy/daisy.c | |
parent | 62eed0e4a3a6ea13ec130ac7acd25d935917344f (diff) | |
download | qmk_firmware-dcc363390f47ec23fdbc04bb56bb03a3cbf310e6.tar.gz qmk_firmware-dcc363390f47ec23fdbc04bb56bb03a3cbf310e6.zip |
Added Daisy port (#2016)
* Add files via upload
* Update readme.md
* Update readme.md
* Update readme.md
* Add files via upload
* Delete config.h
* Delete rules.mk
* Add files via upload
* Update config.h
* revised config files
* revised readme
* Update readme.md
* Update readme.md
Diffstat (limited to 'keyboards/daisy/daisy.c')
-rw-r--r-- | keyboards/daisy/daisy.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/keyboards/daisy/daisy.c b/keyboards/daisy/daisy.c new file mode 100644 index 0000000000..f8ca24ff0b --- /dev/null +++ b/keyboards/daisy/daisy.c @@ -0,0 +1,15 @@ +#include "daisy.h" + +void led_set_kb(uint8_t usb_led) { + // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here + if (usb_led & (1<<USB_LED_CAPS_LOCK)) { + // output low + DDRC |= (1<<PC6); + PORTC &= ~(1<<PC6); + } else { + // Hi-Z + DDRC &= ~(1<<PC6); + PORTC &= ~(1<<PC6); + } + led_set_user(usb_led); +}
\ No newline at end of file |