The Planted Tank Forum - View Single Post - Calling all DIY LED "Junkies" - Your opinions wanted!
View Single Post
post #150 of (permalink) Old 12-14-2012, 05:27 PM
Children Boogie
mistergreen's Avatar
Join Date: Dec 2006
Location: Cincinnati
Posts: 16,743
I just noticed something in the code, for those that had a hard time with the code.

This is a release note from the arduino app last year.

* The WProgram.h file, which provides declarations for the Arduino API,
has been renamed to Arduino.h. To create a library that will work in
both Arduino 0022 and Arduino 1.0, you can use an #ifdef that checks
for the ARDUINO constant, which was 22 and is now 100. For example:

#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#include "WProgram.h"

mistergreen is offline  
For the best viewing experience please update your browser to Google Chrome