My Nano keeps blinking.....

Hi all
Heres the situation

My nano is preloaded with the blink code so in order to start learning i need to see the nano do something and as the blink is preloaded i therefore cannot write the blink sketch and try myself so i had an idea -

I copied and pasted the blink code line by line and changed the time value to 4000 milliseconds then pressed the upload button and nothing happens and in red i get (I presume and error code) here it is - avrdude: stk500_getsync():not in sync:resp=0x30

below is exactly how the code was written but i didnt have such massive spaces they just appeared when i recalled the programme

int led = 13;

void setup() {

pinMode(led, OUTPUT);
}

void loop() {
digitalWrite(led, HIGH);
delay(4000);
digitalWrite(led, LOW);
delay(4000);
}

can anybody kindly throw any crumbs or nuggets of info my way/
Many thanks
Mike

Try here

Thank you

Mike

Ahh I ve allready posted there but was told to move it here Ahhhhrgh :O)

MIG18WOW:
...
below is exactly how the code was written but i didnt have such massive spaces they just appeared when i recalled the programme
...

can anybody kindly throw any crumbs or nuggets of info my way/
Many thanks
Mike

int led = 13;


void setup() {                
  
  pinMode(led, OUTPUT);     
}


void loop() {
  digitalWrite(led, HIGH);   
  delay(4000);               
  digitalWrite(led, LOW);    
  delay(4000);               
}

quote my post
then you will you see how I wrapped [ code ] and [ / code ] around your code
do try that :slight_smile: