]> git.piffa.net Git - sketchbook_andrea/blob - libraries/common/common.h
71cb19a84efa0670564ff0673d9d90662e42ebba
[sketchbook_andrea] / libraries / common / common.h
1 /*
2   Common Class
3
4   Oggetti comuni
5
6 */
7
8 #include "Arduino.h"
9 #ifndef common_h
10 #define common_h
11
12
13 class RGBLed {
14   // Classe rappresentativa di un LED RGB
15   
16     byte redPin ;
17     byte greenPin ;
18     byte bluePin ;
19     byte redValue ;
20     byte greenValue ;
21     byte blueValue ;
22
23   public:
24     RGBLed (byte pinR, byte pinG, byte pinB) ;
25         void Red ();
26     void Green ();
27     void Blue ();
28     void Magenta ();
29     void Cyano ();
30     void White ();
31     void Yellow ();
32     void Off ();
33         void SetColor (byte r, byte g, byte b) ;
34 };
35
36 void brilla(byte pin, int velocita = 500) ;
37
38 #endif