summaryrefslogtreecommitdiffstats
path: root/Led.hpp
blob: d4f4dcd01f7cb9292c2f2f849beaadc06297ea01 (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();
    
    void set(bool status);
    bool status() const;
    
private:
    bool _status;
    Color _color;
};

#endif	/* LED_HPP */