I'm just lighting up an LED through a TIP31C, pin 0 goes through a 560kohm resistor to the tip's input pin pin 1 goes through a 750 ohm resistor to the tip's input pin ^i'm not sure this information is really relevant
The reason I am doing this is so i can sleep the attiny85 while having pin 0 set to HIGH to have the led at a very low brightness, kind of like a standby function
void setup() {
}
void loop() {
digitalWrite(0, HIGH);//works ONLY the first time
delay(500);
digitalWrite(0, LOW);
delay(500);
analogWrite(1, 15);//always works
delay(500);
analogWrite(1, 0);
delay(500);
/*it's like as soon as i've used an analogWrite, i can no
longer output with digitalWrite
*/
//pinMode(0, OUTPUT);//didn't help
digitalWrite(0, HIGH);//never works
delay(500);
digitalWrite(0, LOW);
delay(500);
}