summaryrefslogtreecommitdiff
path: root/keyboard/clueboard1/led.c
diff options
context:
space:
mode:
authorskullY2016-03-28 22:49:24 -0700
committerskullY2016-03-28 22:49:24 -0700
commit5e822417d7aaebbb58154092ad2a7b5fd2469fbb (patch)
tree6720c29b604af5c365af3298c58ec07038c3cdce /keyboard/clueboard1/led.c
parent073b44924cdfd28d64ad2ee1dbe88b00f92d2c72 (diff)
Fixup clueboard support and add rgb to clueboard1
Diffstat (limited to 'keyboard/clueboard1/led.c')
-rw-r--r--keyboard/clueboard1/led.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/keyboard/clueboard1/led.c b/keyboard/clueboard1/led.c
index deb7143ee..f0dd5662d 100644
--- a/keyboard/clueboard1/led.c
+++ b/keyboard/clueboard1/led.c
@@ -20,15 +20,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "led.h"
-void led_set(uint8_t usb_led)
-{
+void led_set_kb(uint8_t usb_led) {
+ DDRF |= (1<<0);
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
- // output low
- DDRB |= (1<<2);
- PORTB &= ~(1<<2);
+ // Turn capslock on
+ PORTF |= (1<<0);
} else {
- // Hi-Z
- DDRB &= ~(1<<2);
- PORTB &= ~(1<<2);
+ // Turn capslock off
+ PORTF &= ~(1<<0);
}
}