summaryrefslogtreecommitdiffstats
path: root/keyboards/daisy/daisy.c
diff options
context:
space:
mode:
authorMax <17062872+westfoxtrot@users.noreply.github.com>2017-11-22 16:52:42 +0100
committerJack Humbert <jack.humb@gmail.com>2017-11-22 16:52:42 +0100
commitdcc363390f47ec23fdbc04bb56bb03a3cbf310e6 (patch)
treec712e675897af51446632f8b45d688e47d9faa94 /keyboards/daisy/daisy.c
parent62eed0e4a3a6ea13ec130ac7acd25d935917344f (diff)
downloadqmk_firmware-dcc363390f47ec23fdbc04bb56bb03a3cbf310e6.tar.gz
qmk_firmware-dcc363390f47ec23fdbc04bb56bb03a3cbf310e6.tar.xz
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.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/keyboards/daisy/daisy.c b/keyboards/daisy/daisy.c
new file mode 100644
index 000000000..f8ca24ff0
--- /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