diff --git a/software/software.ino b/software/software.ino new file mode 100644 index 0000000..79dc4f4 --- /dev/null +++ b/software/software.ino @@ -0,0 +1,55 @@ +#include "Keyboard.h" +#include "HID.h" + +#if F_CPU == 16000000 +#error should be running at 8MHz +#endif + +void setup() { + pinMode(A0, INPUT_PULLUP); + Keyboard.begin(); + Serial.begin(9600); + Serial.setTimeout(50); +} + +void goto_bootloader() { + cli(); + UDCON |= (1<