-1

WHY I AM RECEVING ERROR LIKE THIS my other freinds are able to run same code

enter image description here

why i am receiving error like this

codeit_9038
  • 35
  • 1
  • 3
  • 1
    [Please do not upload images of code/data/errors when asking a question.](//meta.stackoverflow.com/q/285551). Do copy and paste the text into the question. And please include the entire program. – romkey May 20 '22 at 04:01
  • older versions of esp32 arduino core don't have analogWrite – Juraj May 20 '22 at 05:17
  • I think you need the ESP toolkit 2.0.x. Look on their github page for installation instructions (you might need to update the package source) – PMF May 20 '22 at 11:55
  • Please provide enough code so others can better understand or reproduce the problem. – Community May 20 '22 at 16:13

1 Answers1

0

1)Select your correct board of Arduino and then compile. it will compile perfectly. 2) analogWrite() works in arduino boards and pins are following : https://www.arduino.cc/reference/en/language/functions/analog-io/analogwrite/

  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 03 '22 at 18:46