· Renamed WProgram.h to Arduino.h.
* 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" #else #include "WProgram.h" #endif
"RTFM" seems a bit harsh.
Razorblade,I'm not seeing how kaor is wrong.All he stated was:- WProgram.h is missing (renamed to Arduino.h)- Many projects/libraries will no longer compile because of this.Both of these assertions are correct.
So libraries form 022 are obsolete in 1.0 and we must wait for new versions or try to modify them ?
Quote from: bperrybap on Dec 11, 2011, 08:15 amRazorblade,I'm not seeing how kaor is wrong.All he stated was:- WProgram.h is missing (renamed to Arduino.h)- Many projects/libraries will no longer compile because of this.Both of these assertions are correct.No, they are not. Arduino 1.0 has changed more than a filename, and old projects/libraries will mostly not compile because of ALL OF THAT CHANGES (Serial.flush(), Serial.print(byte), write(str), "client == NULL", String class, ...........). Copy-rename Arduino.h (or worse, copying from 022) is a solution for nothing but few sketches.
Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments.
Will it work for everything? of course not but there is a level of pre 1.0 backward compatibilitythat can easily be provided that does work for a great number of existing pre 1.0 libraries and sketches.
The Arduino team intentionally decided not do those things and push all work for dealingwith these incompatibilities out to the end users with no period of overlap.
Will Arduino 1.1 break it all again?
Whether people agree with backward compatibility or not, from purely a PR perspective, breakingeverything right as you deliver your first official 1.0 release doesn't make good press.It is possible that there will be some amount of negative press on the impactof the decision to not provide additional backward compatibility.