4 2 LED / Strisce laterali che lampeggiano alternativamente
5 1 LED / Striscia sotto in FADE
7 Lettura del canale Throttle (3) con la funzione Pulsein
13 Lampeggiatore left = 12;
14 Lampeggiatore right = 11;
18 const byte thrPin = 3; // PIN collegato al CH3
19 byte thr ; // Throttle
23 // I PINs vengono impostati dal constructor al momento
24 // della dichiarazione dell'ogetto.
26 right.Invert() ; // Opzionale: inverte l'ordine del lampeggio da
27 // HI -> LOW --> LOW -> HI
28 // per avere 2 LED che lampeggiano alternativamente
33 thrIn = pulseIn(thrPin, HIGH, 25000);
34 thr = constrain(map(thrIn, 983, 2000, 0, 255), 0, 255) ;
39 left.Blink(1120 - 4 * thr);
40 right.Blink(1120 - 4 * thr);
41 sotto.lSet(thr); // Luminosita' proporzionale al throttle
42 delay(10); // Opzionale