im new to arduino and especially platformio. When I build my program it fails and gives me the error message, “” was not declared in this scope. Why is that?
#include <Arduino.h>
const int led = 6;
void setup()
{
pinMode(led, OUTPUT);
}
void loop()
{
ledBlink();
}
void ledBlink()
{
digitalWrite(led, HIGH);
delay(500);
digitalWrite(led, LOW);
delay(500);
}