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/DualColorLed.h

25 lines
359 B
C++

#ifndef DUALCOLORLED_H
#define DUALCOLORLED_H
#include "IGpio.h"
class DualColorLed
{
public:
enum class State {
Off,
Red,
Green
};
DualColorLed(IGpio& redGpio, IGpio& greenGpio);
void setState(State newState);
private:
IGpio& redGpio;
IGpio& greenGpio;
State currentState;
};
#endif // DUALCOLORLED_H