2024-11-01 21:51:43 +01:00

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