I've recently programmed an ATtiny85 with the Arduino bootloader (8MHz) for a project I need to read 3 analogue inputs.
I started by writing a simple sketch that calls a digitalRead() on pin 2 (physical pin 7) and changes the state of an LED based on whether an input is detected or not. When I apply a voltage to the input using a resistor it reacts instantly changing the LED state but when I remove the input, the 'Tiny takes ~5seconds to respond and switch the LED back.
Does anyone have any information that may help? I started by burning the bootloader that came with the Arduino 1.0.5 IDE and then tried a 3rd party 'Tiny core when I had the issue but it still persists.