From 334d6c8d7a99184cd6189167adc1d29900b0d270 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 10 Apr 2018 16:23:38 +0200 Subject: First commit - Main - Barebone structure for Led class --- Led.hpp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Led.hpp (limited to 'Led.hpp') diff --git a/Led.hpp b/Led.hpp new file mode 100644 index 0000000..d4f4dcd --- /dev/null +++ b/Led.hpp @@ -0,0 +1,34 @@ +/* + * File: Led.hpp + * Author: _prossn + * + * Created on 10. aprile 2018, 16:07 + */ + +#ifndef LED_HPP +#define LED_HPP + +#include + +class Led { +public: + enum class Color { + RED, GREEN, BLUE + }; + + Led(Color color); + Led() = delete; + virtual ~Led(); + + Color color(); + + void set(bool status); + bool status() const; + +private: + bool _status; + Color _color; +}; + +#endif /* LED_HPP */ + -- cgit v1.2.1