diff options
Diffstat (limited to 'keyboards/acr60/acr60.c')
| -rw-r--r-- | keyboards/acr60/acr60.c | 43 |
1 files changed, 16 insertions, 27 deletions
diff --git a/keyboards/acr60/acr60.c b/keyboards/acr60/acr60.c index 8a76020e5..7cba669b8 100644 --- a/keyboards/acr60/acr60.c +++ b/keyboards/acr60/acr60.c | |||
| @@ -1,28 +1,17 @@ | |||
| 1 | #include "acr60.h" | 1 | /* Copyright 2017 Ryan Mitchell (@newtmitch) |
| 2 | #include "led.h" | 2 | * |
| 3 | 3 | * This program is free software: you can redistribute it and/or modify | |
| 4 | void matrix_init_kb(void) { | 4 | * it under the terms of the GNU General Public License as published by |
| 5 | // Keyboard start-up code goes here | 5 | * the Free Software Foundation, either version 2 of the License, or |
| 6 | // Runs once when the firmware starts up | 6 | * (at your option) any later version. |
| 7 | matrix_init_user(); | 7 | * |
| 8 | led_init_ports(); | 8 | * This program is distributed in the hope that it will be useful, |
| 9 | }; | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11 | void matrix_scan_kb(void) { | 11 | * GNU General Public License for more details. |
| 12 | // Looping keyboard code goes here | 12 | * |
| 13 | // This runs every cycle (a lot) | 13 | * You should have received a copy of the GNU General Public License |
| 14 | matrix_scan_user(); | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | }; | 15 | */ |
| 16 | 16 | ||
| 17 | void led_init_ports(void) { | 17 | #include "acr60.h" |
| 18 | // Set caps lock LED pin as output | ||
| 19 | DDRB |= (1 << 2); | ||
| 20 | // Default to off | ||
| 21 | PORTB |= (1 << 2); | ||
| 22 | } | ||
| 23 | |||
| 24 | void led_set_kb(uint8_t usb_led) { | ||
| 25 | // Code for caps lock LED as reported by the OS | ||
| 26 | // Set this per keymap, instead of globally | ||
| 27 | led_set_user(usb_led); | ||
| 28 | } | ||
