PoC: Wire in the OSM loop part too

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/20/head
Gergely Nagy 8 years ago
parent 6a0591aeb8
commit ccc2164af4

@ -23,6 +23,7 @@ void setup() {
void loop() { void loop() {
akelaIF.loop (&akelaIF.hid, &akelaIF.keyMap);
KeyboardHardware.scan_matrix(); KeyboardHardware.scan_matrix();
LEDControl.update(temporary_keymap); LEDControl.update(temporary_keymap);
Keyboard.sendReport(); Keyboard.sendReport();

@ -1,7 +1,4 @@
#include "key_events.h" #include "key_events.h"
#include "AkelaWrapper.h"
static Keyboardio::AkelaInterface akelaIF;
const Key keymaps[KEYMAPS][ROWS][COLS] = { KEYMAP_LIST }; const Key keymaps[KEYMAPS][ROWS][COLS] = { KEYMAP_LIST };

@ -7,12 +7,16 @@
#include "LEDControl.h" #include "LEDControl.h"
#include "Storage.h" #include "Storage.h"
#include "keymap_metadata.h" #include "keymap_metadata.h"
#include "generated/keymaps.h"
extern const Key keymaps[KEYMAPS][ROWS][COLS]; extern const Key keymaps[KEYMAPS][ROWS][COLS];
extern uint8_t primary_keymap; extern uint8_t primary_keymap;
extern uint8_t temporary_keymap; extern uint8_t temporary_keymap;
#include "AkelaWrapper.h"
#include "generated/keymaps.h"
static Keyboardio::AkelaInterface akelaIF;
// sending events to the computer // sending events to the computer
void handle_synthetic_key_event( Key mappedKey, uint8_t currentState, uint8_t previousState); void handle_synthetic_key_event( Key mappedKey, uint8_t currentState, uint8_t previousState);
void handle_key_event(byte row, byte col, uint8_t currentState, uint8_t previousState); void handle_key_event(byte row, byte col, uint8_t currentState, uint8_t previousState);

Loading…
Cancel
Save