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
}
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
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.