Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

298
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda