Hi.
I made simple circuit which reads value from potentiometer (analogRead) and use PWM to control LED (analogWrite).
When I upload it to attiny45 with tiny45 core it was OK.
Unfortunately on tiny13 it doesn't work
Tiny13 and tiny45 have the same pinouts, so I bought tiny13 for my project and now I am so angry.
Can sb tell me what is going on??
Here's my code:
void setup(){
}
void loop(){
int sensor=analogRead(3);
sensor=sensor/4;
if(sensor<10) {
analogWrite(0, 0);
} else {
analogWrite(0,sensor);
}
delay(10);
}