mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-05-31 16:41:26 +00:00
22 lines
333 B
C
22 lines
333 B
C
|
#ifndef __TEENSY_USB
|
||
|
#define __TEENSY_USB
|
||
|
|
||
|
#include <Arduino.h>
|
||
|
#include <USBHost_t36.h>
|
||
|
|
||
|
typedef void (*keyboardCallback)(int unicode);
|
||
|
|
||
|
class TeensyUSB {
|
||
|
public:
|
||
|
TeensyUSB();
|
||
|
~TeensyUSB();
|
||
|
|
||
|
void init();
|
||
|
void attachKeypress(keyboardCallback cb);
|
||
|
void attachKeyrelease(keyboardCallback cb);
|
||
|
|
||
|
void maintain();
|
||
|
};
|
||
|
|
||
|
#endif
|