19 lines
255 B
C++
19 lines
255 B
C++
#ifndef GPIO_h
|
|
#define GPIO_h
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
class IO {
|
|
private:
|
|
byte GPIOPin; // byte heißt 0-255 = 8 Bit
|
|
bool GPIOinput;
|
|
public:
|
|
IO(byte pin, bool input);
|
|
byte SetHigh();
|
|
byte SetLow();
|
|
byte GetState();
|
|
};
|
|
|
|
|
|
#endif |