I'm trying to read an analog input on the Attiny85 physical pin 6 (PB1, PWM), but analogRead(PB1) always returns 1023. Is it even possible to use analogRead on this pin? I'm fairly new to this so sorry if it's an obvious answer. Thanks!
1
-
1section 10.3.1 ww1.microchip.com/downloads/en/DeviceDoc/… – Juraj Jan 13 at 20:49
Add a comment
|
PB1 has no analog input. So no, you can't read analog with it.
For analog you must use any of PB2 through PB5.