I have noticed that unfortunatly the provided code example will not work on newer AVR devices over the same, large temperature range. Compare the pull-up resistor current graphs of the ATTINY13A (upper) to the ATTINY202 (lower):

This means if you want to use this code reliably on newer parts, you have to:
1. Re-calibrate the internal pullup resistors whenever the temperature changes or
2. Use an external pullup resistor (which can be switched)
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.