This repository has been archived on 2024-11-17. You can view files and clone it, but cannot push or open issues or pull requests.
zamek-hswro/ArduinoGpio.h

23 lines
431 B
C++

#ifndef ARDUINOGPIO_H
#define ARDUINOGPIO_H
#include "IGpio.h"
class ArduinoGpio : public IGpio
{
public:
ArduinoGpio(int pin, bool initialValue, Mode initialMode);
virtual ~ArduinoGpio();
virtual bool read();
virtual void write(bool newValue);
virtual Mode getMode();
virtual void setMode(Mode newMode);
private:
int pin;
Mode mode;
int toAdruinoMode(Mode mode);
};
#endif // ARDUINOGPIO_H