summaryrefslogtreecommitdiffstats
path: root/Led.hpp
blob: b082d7d9846cc6f8563e1ac246908622b3079938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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() const;
    
    void set(bool status);
    bool state() const;
    
private:
    bool _state;
    Color _color;
};

#endif	/* LED_HPP */