I have some very basic code that I am trying to get to work on the Particle Dev local IDE. When I attempt to verify this code, I get two errors, looking like ‘D0’ not declared in this scope.
What could be causing this?
Here is my code, for anyone wondering. The blink LED example gives 8 errors of a similar kind.
int left = D0;
int right = D1;
void setup()
{
pinMode(left, OUTPUT);
pinMode(right, OUTPUT);
Serial.begin(9600);
}
void loop()
{
if (digitalRead(left) == HIGH)
{
Serial.println("LEFT");
}
if(digitalRead(right) == HIGH)
{
Serial.println("RIGHT");
}
}