]> git.piffa.net Git - aerei/blobdiff - aerei/palla/prototipo/prototipo.ino
Daniele manca fsm switch
[aerei] / aerei / palla / prototipo / prototipo.ino
index 061b081363d9753e7713d5c97ae0ee5b16c4f63d..1443146c25f94867cbaf7d6c579773ed7132e22d 100644 (file)
@@ -23,7 +23,7 @@ Input:
 
 // Instanziamo un LED fuori dal loop
 
-RGBLed sotto(5,6,9);
+RGBLed sotto(5,6,9,0);
 Pwm motore(10);
 
 // Variabili per interrupt 0 si PIN 2: Throttle
@@ -60,15 +60,15 @@ Serial.begin(9600);
 
 void loop() {
     sotto.Red();
-    motore.set(0);
+    motore.Set(0);
 delay(500);
 sotto.Off();
     sotto.Green();
-    motore.set(150);
+    motore.Set(150);
 delay(500);
 sotto.Off();
     sotto.Blue();
-    motore.set(250);
+    motore.Set(250);
 delay(500);
 sotto.Off();