Received a couple of attiny85s today and I am trying the blink sketch with a uno as isp,
as found on
the ArduinoISP sketch uploads ok but when i open the blink sketchand change the board type to attiny 85 with arduino as isp the sketch will no longer conpile with this message
Blink_attiny85.ino:18:21: error: Arduino.h: No such file or directory
Blink_attiny85.ino: In function 'void setup()':
Blink_attiny85:20: error: 'OUTPUT' was not declared in this scope
Blink_attiny85:20: error: 'pinMode' was not declared in this scope
Blink_attiny85.ino: In function 'void loop()':
Blink_attiny85:25: error: 'HIGH' was not declared in this scope
Blink_attiny85:25: error: 'digitalWrite' was not declared in this scope
Blink_attiny85:26: error: 'delay' was not declared in this scope
Blink_attiny85:27: error: 'LOW' was not declared in this scope
It looks like Arduino.h isnt in the spot the IDE thinks it is. That being said, its just a guess, to get a real answer, you'll need to post your code so we can see it.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows 7), Board: "ATtiny85 (w/ Arduino as ISP)"
Blink_attiny85.ino:18:21: error: Arduino.h: No such file or directory
Blink_attiny85.ino: In function 'void setup()':
Blink_attiny85:20: error: 'OUTPUT' was not declared in this scope
Blink_attiny85:20: error: 'pinMode' was not declared in this scope
Blink_attiny85.ino: In function 'void loop()':
Blink_attiny85:25: error: 'HIGH' was not declared in this scope
Blink_attiny85:25: error: 'digitalWrite' was not declared in this scope
Blink_attiny85:26: error: 'delay' was not declared in this scope
Blink_attiny85:27: error: 'LOW' was not declared in this scope
its when trying to use any of the 6 attiny45/85 boards
All of that info you posted is the same as the last info, with the addition of some system configuration details (irrelevant to the current situation). Ill take a chance and ask again that you post your code so we can see what is giving us the errors you have posted twice.
I believe it was Einstein that defined insanity as: "to repeat the same action and expect different results".
Sorry I misunderstood. i thought the was info missing from the error. (i'm a Noob.)
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the Uno and
Leonardo, it is attached to digital pin 13. If you're unsure what
pin the on-board LED is connected to on your Arduino model, check
the documentation at http://www.arduino.cc
This example code is in the public domain.
modified 8 May 2014
by Scott Fitzgerald
*/
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 13 as an output.
pinMode(3, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(3, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(3, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
I think it must have something to do with the additional data required to use the 45/85.
You should always put your code in the code brackets (first button on the left, above where you type your messages, below the message icon option, the slash inside angle brackets).
You could try to add this line at the top of the sketch, outside all functions. Obviously, its being added automatically (like it should), but it might be using a different include format, I dont know which method it uses.
#include <Arduino.h>
It might work, but to be honest, I dont think that will (I've never needed it in my attiny projects).
More likely it seems that the attiny core hasnt been installed, or hasnt been installed properly. If the include line doesnt work, try re-installing the attiny addons (remove them first, if they are there). Pay close attention to the versions. There are at least 2 major variants, based on which version of the Arduino IDE you are using.
A google search will probably tell you where to get the core stuff, if you need to do it manually. I am currently using Arduino 1.6.5, in my case, I used the board manager to download and install the needed files directly from the Arduino IDE (bottom of the list in board manager). I did have to close and restart the IDE to use the newly installed core.
I'm not sure if your version has this feature or not, if not, it might be worth updating to save yourself some hassle with the manual install (though it should be strait forward, almost like installing a library).
I uninstalled ide the installed 1.6.5 then used the board manager.
Followed the highlow tutorial to the letter and worked. Think it helped that I didn't have a house full and had some piece and quiet.
Thanks for the help