]> git.piffa.net Git - aerei/blobdiff - aerei/antonino/bugatti/bugatti.ino
Common: aggiunto ritardo per Blink e Pwm, manca per Sequenza
[aerei] / aerei / antonino / bugatti / bugatti.ino
index 00d32d94b5f8ebed8f6d962fc6bfe6e07fbc51b5..b890380ab7086a7580060912c82d4c1029f740a9 100644 (file)
@@ -36,6 +36,13 @@ void setup() {
   // per avere 2 LED che lampeggiano alternativamente
 
   randomSeed(analogRead(0));
+
+  // Test iniziale dei LED per verifica contatti:
+  left.High();
+  right.High();
+  sotto.White();
+  motore.Set(255);
+  delay(4000);
 }
 
 void loop() {
@@ -45,7 +52,7 @@ void loop() {
   thr = map(thrIn, 983, 2000, 0, 255);
     
 // Gestione throttle
-  if (thr > 0 && thr < 15) {
+  if (thr >= 0 && thr < 15) {
     // IDLE
 
     right.Blink();