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
Raw Permalink Normal View History

2017-12-17 11:31:13 +00:00
#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