You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
514 B
27 lines
514 B
8 years ago
|
#include "KeyboardioFirmware.h"
|
||
|
|
||
|
Keyboardio_::Keyboardio_(void) {
|
||
|
}
|
||
|
|
||
|
void
|
||
|
Keyboardio_::setup(void) {
|
||
|
wdt_disable();
|
||
|
delay(100);
|
||
|
Keyboard.begin();
|
||
|
Mouse.begin();
|
||
|
AbsoluteMouse.begin();
|
||
|
KeyboardHardware.setup();
|
||
|
LEDControl.boot_animation();
|
||
|
|
||
|
temporary_keymap = primary_keymap = Storage.load_primary_keymap(KEYMAPS);
|
||
|
}
|
||
|
|
||
|
void
|
||
|
Keyboardio_::loop(void) {
|
||
|
KeyboardHardware.scan_matrix();
|
||
|
LEDControl.update(temporary_keymap);
|
||
|
Keyboard.sendReport();
|
||
|
Keyboard.releaseAll();
|
||
|
}
|
||
|
|