/* * Arduino program example */ //// // Include files //// #include "arduino.h" #include //// // Global variables // my variables int i; long now; // //// //// // Handler functions /// void setup(void){ i = 0; } void loop(void){ led((i-1 + LEDS_NB) % LEDS_NB, 0); led(i % LEDS_NB, 1); now = millis(); while(millis() != now+100); i = (i+1) % LEDS_NB; } void serialInHandler(unsigned char byte){ }