Hi,
I am so new to this that this is my 1st project and I have fallen at the first hurdle!!
Tried to run a simple tut from “High – Low Tech” running an Arduino board as ATtiny programmer with an Attiny85, but I get the attached error when I tried to test it with the “Blink” example.
Can anybody tell me where I’m going wrong?
Regards,
To put code in a post, click the # button above the edit window and then paste the coe you copied from the IDE inside the code /code tags. Yes, I had to leave the brackets out but you leave them in.
Lowarse:
Hi,
I am so new to this that this is my 1st project and I have fallen at the first hurdle!!
Tried to run a simple tut from “High – Low Tech” running an Arduino board as ATtiny programmer with an Attiny85, but I get the attached error when I tried to test it with the “Blink” example.
Can anybody tell me where I’m going wrong?
Regards,
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
I changed the "int led = 13" to "int led = 3" for the output as the attiny85 only has 8 pins.