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.
34 lines
688 B
34 lines
688 B
// Copyright 2015 Keyboardio, inc. <jesse@keyboard.io>
|
|
// See "LICENSE" for license details
|
|
|
|
#define DEBUG_SERIAL false
|
|
|
|
#include "KeyboardioFirmware.h"
|
|
#include "KeyboardioHID.h"
|
|
|
|
|
|
uint8_t primary_keymap = 0;
|
|
uint8_t temporary_keymap = 0;
|
|
|
|
void setup() {
|
|
wdt_disable();
|
|
Keyboard.begin();
|
|
Mouse.begin();
|
|
AbsoluteMouse.begin();
|
|
KeyboardHardware.setup();
|
|
LEDControl.boot_animation();
|
|
|
|
temporary_keymap = primary_keymap = Storage.load_primary_keymap(KEYMAPS);
|
|
}
|
|
|
|
|
|
void loop() {
|
|
akelaIF.loop (&akelaIF.hid, &akelaIF.keyMap);
|
|
KeyboardHardware.scan_matrix();
|
|
LEDControl.update(temporary_keymap);
|
|
Keyboard.sendReport();
|
|
Keyboard.releaseAll();
|
|
}
|
|
|
|
|