summaryrefslogtreecommitdiffstats
path: root/keyboards/phantom/led.c
diff options
context:
space:
mode:
authorStick <nstickney@gmail.com>2017-06-23 16:02:44 -0500
committerStick <nstickney@gmail.com>2017-06-23 16:02:44 -0500
commitf4e4d6f8d046eff9a4d49ddbf6e499ba519c7182 (patch)
treef52082f66034617178172a6e5509257711ac1961 /keyboards/phantom/led.c
parent37987837b18a758dffbed2b01ab34103f4f6f69f (diff)
parenta1ce43781ab1e9709c006435f62fd25876561a5b (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'keyboards/phantom/led.c')
-rw-r--r--keyboards/phantom/led.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/keyboards/phantom/led.c b/keyboards/phantom/led.c
deleted file mode 100644
index 69dba7d40e..0000000000
--- a/keyboards/phantom/led.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
-Copyright 2012 Jun Wako <wakojun@gmail.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#include <avr/io.h>
-#include "stdint.h"
-#include "led.h"
-
-void led_init_ports(void) {
- // * Set our LED pins as output
- DDRB |= (1<<6);
- DDRB |= (1<<7);
-}
-
-void led_set_kb(uint8_t usb_led) {
- if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
- // Turn capslock on
- PORTB |= (1<<6);
- } else {
- // Turn capslock off
- PORTB &= ~(1<<6);
- }
- if (usb_led & (1<<USB_LED_SCROLL_LOCK)) {
- // Turn scrolllock on
- PORTB |= (1<<7);
- } else {
- // Turn scrolllock off
- PORTB &= ~(1<<7);
- }
-}