rayshobby/opensprinkler — pull request #2 by taxilian (2012-07-07 21:34:40+00:00)
Title: Updated to work with Arduino 1.0 (tested on 1.0.1)

You may want to merge this by hand with #ifdefs and such to maintain backwards compatibility, but since I'm fairly new to Arduino I have no interest in learning the "old" stuff and just updated it to work with the new stuff.

With this patch it builds fine for me using 1.0.1

(backwards compatibility "fix" for your reference:)
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif