mirror of
https://github.com/skogaby/OpeNITHM.git
synced 2026-10-03 04:18:12 +03:00
It didn't build but now it does Fixed the USB def for switching between 32U4/328P Fixes indents on all files
27 lines
461 B
C++
27 lines
461 B
C++
// USBOutput.h
|
|
|
|
#ifndef _USBOUTPUT_h
|
|
#define _USBOUTPUT_h
|
|
|
|
#include "Output.h"
|
|
|
|
#if defined(ARDUINO) && ARDUINO >= 100
|
|
#include "arduino.h"
|
|
#else
|
|
#include "WProgram.h"
|
|
#endif
|
|
|
|
#include <HID-Project.h>
|
|
|
|
class USBOutput : public Output
|
|
{
|
|
private:
|
|
float lastPosition;
|
|
public:
|
|
void sendKeyEvent(int key, bool pressed, bool doublePressed) override;
|
|
void sendSensorEvent(float position) override;
|
|
USBOutput();
|
|
};
|
|
|
|
#endif
|