Friday, February 24, 2012

Cleaner Arduino Coding with Streaming

Arduino Serial.Print() and Serial.Write() instructions multiply like bunnies in applications that use serial output for debugging or to drive serial displays. If only related instructions, variables and strings could be neatly packaged for serial output using a single instruction...Turns out that they can, and with zero code overhead. All that's required is the Streaming library from Arduiniana.org.

Tuesday, February 7, 2012

Arduino ISR Clock Demo

The engineering blog engblaze.com recently posted a great tutorial on using Arduino/AVR timer interrupts. This led to a lunch-hour challenge: To convert their once-a-second LED blinker into a minimal 7-segment-style clock display using our $39 GLO-216G serial OLED. Mission accomplished: