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.
|
|
|
#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);
|
|
|
|
}
|
|
|
|
|
|
|
|
custom_loop_t loopHooks[HOOK_MAX] = {NULL};
|
|
|
|
|
|
|
|
void
|
|
|
|
Keyboardio_::loop(void) {
|
|
|
|
for (byte i = 0; loopHooks[i] != NULL && i < HOOK_MAX; i++) {
|
|
|
|
custom_loop_t hook = loopHooks[i];
|
|
|
|
(*hook)();
|
|
|
|
}
|
|
|
|
|
|
|
|
KeyboardHardware.scan_matrix();
|
|
|
|
LEDControl.update(temporary_keymap);
|
|
|
|
Keyboard.sendReport();
|
|
|
|
Keyboard.releaseAll();
|
|
|
|
}
|
|
|
|
|