-
Notifications
You must be signed in to change notification settings - Fork 0
/
keyboard-remap.ino
32 lines (24 loc) · 933 Bytes
/
keyboard-remap.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* Copyright (c) 2017-2019 Alexander Sosedkin <monk@unboiled.info>.
* Firmware for my custom PS/2 Kinesis with an Arduino Leonardo inside.
* Interfaces with PS/2 controller, acts as USB keyboard.
* Implements a Colemak-inspired layout and does an obscene amount of other things.vdmмьvu
*
* Uses Arduino HID-Project library by NicoHood <blog@nicohood.de>.
* Uses PS2KeyAdvanced by Paul Carpenter, PC Services <sales@pcserviceselectronics.co.uk>.
*/
#include "core/modes.part.c"
#include "arduino/source_ps2keyraw.part.c"
#include "arduino/emitter_hidproject.part.c"
#include "arduino/kinesis_ps2codes_to_locations.map.h"
#include "modes/modes.part.c"
void setup(void) {
delay(2000); // To ease reprogramming. TODO: lower later.
source_setup();
emitter_setup();
modes_setup(MODE_INITIAL);
Serial.println("Keyboard online.");
}
void loop() {
struct InEvent ev = source_read_keycode();
handle_event(ev);
}