I currently try to program an Attiny45 with an Arduino UNO as ISP.
The Arduino is able to program the Attiny45.
However, when I try the blink example, it resets the Attiny, when setting digitalOutput to low (on any pin)
To further confirm, that it resets only, when setting a pin to low, I wrote this sketch and let it run on the Attiny.
void setup() {
pinMode(3, OUTPUT);
}
void loop() {
delay(1000);
digitalWrite(3, HIGH);
delay(1000);
digitalWrite(3, LOW);
delay(10000);
digitalWrite(3, HIGH);
delay(1000);
digitalWrite(3, LOW);
}
The LED I connected to pin 3 waits 1 second, and then turns on, but when 1 second passed and it should stay off for 10 seconds, it resets and only waits 1 second.
I tried reburning the bootloader onto the Attiny, which had no effect.