I do not know if this is a hardware OR a software problem...but I am assuming software.
I have made myself a rubbish (but it works) Nano Attiny84 ISP baord to program some ATTiny84s (much like the one I made for tiny85s).
My problem is I have successfully uploaded my first sketch and it works! Well...sort of. I borrowed the blink code and tried pin 0 as the led first. No such luck. Pin 2 of the chip is meant to be D0.
So I wondered if it was just that pin, so modified the code to the code below (tests all pins with a 100ms blink).
They all work, pins D1-D10 all work. Why does D0 not work? Do I need to do something with fuses?
I have tried a second chip in case it was just fried, and still no luck. Same symptoms.
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 13 as an output.
for (int i=0; i<10;i++){
pinMode(i, OUTPUT);
}
}
// the loop function runs over and over again forever
void loop() {
for (int i=0; i<10;i++){
digitalWrite(i, HIGH); // turn the LED on (HIGH is the voltage level)
delay(100); // wait for a second
digitalWrite(i, LOW); // turn the LED off by making the voltage LOW
delay(100);
} // wait for a second
}