Hi, I wrote this very simple sketch to create a clock for a project. It compiles and uploads. I have done similar things before and these worked. Now nothing happens.
void setup()
{
// put your setup code here, to run once:
pinMode(5, OUTPUT);
}
void loop()
{
// put your main code here, to run repeatedly:
digitalWrite(5, HIGH);
delay(25);
digitalWrite(5, LOW);
delay(25);
}
Cant see what Ive done wrong.
Update:
Aha, I was using physical pin numbers rather than digital.