Attiny84 20mhz, inputs and outputs HELP

Sorry, I meant to say '84 not '85!

My point is are you actually running the '84 at 20MHz with an external crystal? Arduinos normally run at up to 16MHz, so could that extra 4MHz be the problem?

You can run the '84 at 1MHz, 8MHz or 16MHz (I think) without a crystal.

Paul