Primarily so we can use the Keyboardio_ constructor later to initialize things for us. Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>pull/27/head
parent
a5f3b98c79
commit
79ddb15c3b
@ -0,0 +1,26 @@
|
||||
#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();
|
||||
}
|
||||
|
Loading…
Reference in new issue