While in the process of working on my flashing brake lights project, I ran into trouble trying to program my ATTiny85 with my Arduino Uno board. It seemed pretty simple – just follow one of many other tutorials online. Although, three separate tutorials that where slightly different still couldn’t get my chip programmed. Starting with High-Low Tech’s post, and working through Scott Daniel’s tutorial, then finally to an Instructables article by Randofo. These where some of the errors I was getting:
Blink.cpp:8:21: error: Arduino.h: No such file or directory
Blink.cpp: In function ‘void setup()’:
Blink:10: error: ‘OUTPUT’ was not declared in this scope
Blink:10: error: ‘pinMode’ was not declared in this scope
Blink.cpp: In function ‘void loop()’:
Blink:14: error: ‘HIGH’ was not declared in this scope
Blink:14: error: ‘digitalWrite’ was not declared in this scope
Blink:15: error: ‘delay’ was not declared in this scope
Blink:16: error: ‘LOW’ was not declared in this scope
Randofo’s article was very useful, since it has photos showing every step of the process (which is something I really need at this point). Randofo’s article still did not work, although in the comments other users where experiencing the same string of error messages in the compiler log as I was. Randofo suggested to try rolling back to the Arduino IDE version 0022 instead of using the current ( as of this article ) IDE v1.0.
I did some quick research on this, and found from Arduino’s website a statement saying that the ArduinoISP functionality is currently broken.
“NOTE: Currently, you cannot use an Arduino Uno as an ISP programmer because the optiboot bootloader does not support this sketch. A revision for this is in progress.”
From here I back tracked a bit, looked over the older version of High-Low Tech’s article (found here), and downloaded the IDE Version 0022.
…annnd it worked!
Hopefully Arduino gets that revision, but in the mean time it’s nice to have access to older versions of the IDE.