Tuesday, 18 June 2013

Changes to Arduino 1.0

I tried to make buildbot build my old X10 automation code and found some issues.
The builds kept breaking with errors around WProgram.h
Turns out that the new version needs this to be changed over to Arduino.h

So how to do this? Easy when you run Linux.
1. Change to the base code direcrtory.
2. run the following little bit of bash code
           for i in `find`
           do
                sed 's/WProgram.h/Arduino.h/g' -i $i
           done