mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-11-08 16:04:42 +00:00
25 lines
385 B
C++
25 lines
385 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);
|
|
|
|
uint8_t getModifiers();
|
|
uint8_t getOemKey();
|
|
|
|
void maintain();
|
|
};
|
|
|
|
#endif
|