]> git.piffa.net Git - aerei/commitdiff
prot palla
authoreaman <eaman@pad.piffa.net>
Mon, 13 Mar 2017 13:12:55 +0000 (14:12 +0100)
committereaman <eaman@pad.piffa.net>
Mon, 13 Mar 2017 13:12:55 +0000 (14:12 +0100)
aerei/palla/ailerons_state_rgb/ailerons_state_rgb.ino
aerei/palla/prototipo/prototipo.ino

index acb88573395f23dc29d102bab5e39b6efdde1f60..7af701818163ebba59919e5b068b579712985f51 100644 (file)
@@ -1,7 +1,6 @@
 /* Aereo Palla
 
 Pilotare un LED RGB in base al canale degli alettoni:
-Questo sketch usa la funzione pulseIn(),
 per versione con interrupts vedere esempio successivo.
 
 = 3 stati + 2 transizioni:
index a03c08c64187d2e14bf8085e511dc88afb66b81a..061b081363d9753e7713d5c97ae0ee5b16c4f63d 100644 (file)
@@ -5,8 +5,6 @@ Prototipo: F8 Bearcat
 Output:
    3 RGB PWM sotto
    1 PWM Motore
-//   2 LED ai lati con lampeggio alternato
-//   2 LED alle estremita ali
 
 Input:
     2 interrupts per throttle e alettone
@@ -62,15 +60,17 @@ Serial.begin(9600);
 
 void loop() {
     sotto.Red();
+    motore.set(0);
 delay(500);
 sotto.Off();
     sotto.Green();
+    motore.set(150);
 delay(500);
 sotto.Off();
     sotto.Blue();
+    motore.set(250);
 delay(500);
 sotto.Off();
-motore.UD(3000);
 
 #ifdef DEBUG
     Serial.print("PIN2: ");