Attiny 45 use reset pin as analog input?
A few gotchas using the RESET pin as input...


There is an internal pull-up resistor on it...





In order to be able to use the ~RESET pin as an input and NOT also reset the chip, you need to disable the RESET pin with the RSTDISBL fuse...





If you set the RSTDISBL fuse, you will be unable to use in-circuit programming to reprogram the part.