hi
i have a arduino micro board r3. Im having problems with the arduino. first of all how do i factory reset it or how do i upload new sketches?. I've tried the ground reset+pin and button. I'm trying to run a sketch on it that would brute force my mbp 4 digit pin lock. I've manage to run a sketch but after the 5th attempt it won't restart the computer, therefore the arduino keeps inputting the next 4 digits (no 1 minute delay). Even when its timed out for 1 minute. Can some one point me into the right direction? heres the code I'm using. i got it off another thread here. thank you any help would be appreciated.
void setup()
{
}
void loop()
{
static unsigned short pin;
static char buffer[5];
if ( pin < 9999 )
{
sprintf( buffer, "%04hu", pin );
Keyboard.println( buffer );
++pin;
delay( 10000 );
}
else
{
// Indicate finish (e.g. flash the on-board LED)
}
}