Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

299
Views
identifier "pinMode" is undefined why i am receiving this error

i am trying to run aurdino ide with vs code but i am receiving this error why ??

[![enter image description here][1]][1]

#define LED_BUILTIN= 2


void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Vscode doesn't know you are using Arduino. pinMode is not imported so it doesn't know what it is. You need to set vscode up appropriately you can read more for example here: https://maker.pro/arduino/tutorial/how-to-use-visual-studio-code-for-arduino

about 4 years ago · Juan Pablo Isaza Report

0

Not sure what your error is, but try adding #include <Arduino.h>

Also, do you have platform io installed in vscode? If so, need to see your platformio.ini config file, and also the board you've configured, and what board you actually have. LED_BUILTIN from the top of my head is a FireBeetle... but could be something else.

Need more info.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!