]> git.piffa.net Git - sketchbook_andrea/blobdiff - libraries/common/common.h
Common, cambiato il behaiour di RGB LED:
[sketchbook_andrea] / libraries / common / common.h
index 97893fcd75d1b68e23de76d079a9e74be417fb1b..440abf4f803dcb8d82e35a6fae6e94b1907bc7c0 100644 (file)
@@ -48,12 +48,13 @@ class RGBLed {
     byte redValue ;
     byte greenValue ;
     byte blueValue ;
-    byte common ;
+    boolean common ;
 
   public:
     RGBLed (byte pinR, byte pinG, byte pinB) ;
     RGBLed (byte pinR, byte pinG, byte pinB, byte com) ;
        void SetColor (byte r, byte g, byte b) ;
+       void Rand ();
        void Red ();
     void Green ();
     void Blue ();
@@ -154,6 +155,10 @@ class Sequenza {
 // Funzioni
 
 void brilla(byte pin, int velocita = 200) ;
-#endif
 
 byte lum(byte val);
+
+int calibraTrim(int pin, const byte ledPin = 13);
+
+
+#endif