Fancy Blink for Arduino

This little blink program for the Arduino blinks an LED to give two short flashes and then a longer pause. The milliseconds are kept in an array ledDelays. It iterates through the array, setting the class=’bash’>interval according where the delayCount pointer is set. The LED state is toggled when the interval is complete.

The char pout[50] is used as a tidy way of outputting to the serial port as some older Arduino board don’t support Serial.printf.