diff options
author | Nao Pross <naopross@thearcway.org> | 2018-04-10 16:23:38 +0200 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-04-10 16:23:38 +0200 |
commit | 334d6c8d7a99184cd6189167adc1d29900b0d270 (patch) | |
tree | 8b73a235d3d3ae8106cf23a175d125a656bceb1e /Led.hpp | |
download | SAMLiquidSmoke-334d6c8d7a99184cd6189167adc1d29900b0d270.tar.gz SAMLiquidSmoke-334d6c8d7a99184cd6189167adc1d29900b0d270.zip |
First commit
- Main
- Barebone structure for Led class
Diffstat (limited to 'Led.hpp')
-rw-r--r-- | Led.hpp | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -0,0 +1,34 @@ +/* + * File: Led.hpp + * Author: _prossn + * + * Created on 10. aprile 2018, 16:07 + */ + +#ifndef LED_HPP +#define LED_HPP + +#include <string> + +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 */ + |