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!

asked Jan 13, 2021 at 20:44
1

1 Answer 1

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.

answered Jan 13, 2021 at 20:49
1
  • oh shoot... alright, thank you for the quick answer!! Commented Jan 13, 2021 at 20:58

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.