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