0

I want to shine LED in 64 of 255 duty cycles = level of brightness but it pops up this error (see picture). Can anybody tell me why and help me ? Thank you.

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  
  analogWrite(11, 64)
  delay{1000};
  analogWrite(11, 0)
  delay(1000);
  
  
  
  // put your main code here, to run repeatedly:

}

enter image description here

1
  • The error message (and the title of your post) tells you everything you need to fix your code, really. Commented Aug 4, 2020 at 17:12

1 Answer 1

1

You should write ";" end of each lines.

analogWrite(11, 64);
delay(1000);
analogWrite(11, 0);
delay(1000);
4
  • This advice helped a lot :) Great, it works already. Thank you very much Furkan Commented Aug 3, 2020 at 22:17
  • Did you check connects? You should check that long leg of led is connected with arduino. Commented Aug 3, 2020 at 22:19
  • It works already, thank you very much. I had also broken LED and with new one it works perfectly :) Commented Aug 3, 2020 at 22:21
  • Good job. See you... Commented Aug 3, 2020 at 22:22

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.