Add support for rev3 of the Atom47 (#2672)
* Added support for rev3 of the Atom47 * Updated Atom47 readme's * Fix redefine error on rev2 and add maartenwut's keymap * Fix redefine error on LEdiodes keymap
This commit is contained in:
parent
7bbc9ccc31
commit
d777a05864
21 changed files with 364 additions and 68 deletions
|
@ -16,16 +16,9 @@ void matrix_scan_kb(void) {
|
|||
|
||||
void led_init_ports(void) {
|
||||
// * Set our LED pins as output
|
||||
DDRB &= ~(1<<5);
|
||||
DDRE |= (1 << 6);
|
||||
}
|
||||
|
||||
void led_set_kb(uint8_t usb_led) {
|
||||
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
|
||||
// Turn capslock on
|
||||
PORTF |= (1<<5);
|
||||
} else {
|
||||
// Turn capslock off
|
||||
PORTF &= ~(1<<5);
|
||||
}
|
||||
led_set_user(usb_led);
|
||||
led_set_user(usb_led);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue