1
0
Fork 0

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
This commit is contained in:
Max 2017-11-22 15:52:42 +00:00 committed by Jack Humbert
parent 62eed0e4a3
commit dcc363390f
7 changed files with 408 additions and 0 deletions

15
keyboards/daisy/daisy.c Normal file
View file

@ -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);
}