0

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

PB1 has no analog input. So no, you can't read analog with it.

For analog you must use any of PB2 through PB5.

  • oh shoot... alright, thank you for the quick answer!! – Quentin HUET Jan 13 at 20:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.