I just purchased the new Second Edition of “Getting Started With Arduino,” by Massimo Banzi, and also downloaded arduino-1.0-rc1.
When trying to run the very first example in the new book, I get an error message.
sketch_sep19a:1: error: conflicting declaration ‘const int LED’
arduino-1.0-rc1\hardware\arduino\variants\standard/pins_arduino.h:47: error: ‘LED’ has a previous declaration as ‘const uint8_t LED’
Yep, LED is invalid, for any example in the Second Edition, since it is already internally defined, in the new IDE. This isn’t a problem in IDE 0022, or previous IDE.
That makes many of the examples in the brand new, published in September 2011 book, that I just paid for, less useful than they should be, and seriously undermines the value of the new book, since so many of the examples will no longer work as published.
Yes, I can go in and change LED to something else, but it sure seems pretty stupid to have to do it in the first place. Why publish a brand-new book that already doesn’t work as written? Why publish a new IDE that makes an arbitrary change that affects previously published books and tutorials? The new edition of the book shows Arduino 1.0-beta1 as the IDE, but by rc1 there have already been changes that conflict with the book.