]> git.piffa.net Git - sketchbook_andrea/blobdiff - RGB_LED/rgb_7_obj/rgb_7_obj.ino
FSM
[sketchbook_andrea] / RGB_LED / rgb_7_obj / rgb_7_obj.ino
index e63ace4baeefbcfa389f210d992cf84957dde863..5a3dcf8db54fc7b7b6e8454de7de282b17628d15 100644 (file)
@@ -15,11 +15,6 @@ class RGBLed {
     byte bluePin ;
 
   public:
-    // Public properties
-    byte redValue ;
-    byte greenValue ;
-    byte blueValue ;
-
     // Constructor: come viene instanziato un oggetto facente parte della classe
     RGBLed(byte pinR, byte pinG, byte pinB)
     {
@@ -28,7 +23,7 @@ class RGBLed {
       greenPin  = pinG ;
       bluePin   = pinB ;
 
-      // Equvalente del Setup() per inizializzare i PIN
+      // Equivalente del Setup() per inizializzare i PIN
       pinMode(redPin, OUTPUT);
       pinMode(greenPin, OUTPUT);
       pinMode(greenPin, OUTPUT);
@@ -68,7 +63,6 @@ void loop() {
   delay(1000);
   led.SetColor(255, 0, 255) ; // Mettiamo il LED in Green
   delay(1000);
-
 }
 
 /* Domande