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.
    – StarCat
    Aug 4 '20 at 17:12
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 Aug 3 '20 at 22:17
  • Did you check connects? You should check that long leg of led is connected with arduino. Aug 3 '20 at 22:19
  • It works already, thank you very much. I had also broken LED and with new one it works perfectly :) Aug 3 '20 at 22:21
  • Good job. See you... Aug 3 '20 at 22:22

Not the answer you're looking for? Browse other questions tagged or ask your own question.