Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

300
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda