New to this language and having difficulty understanding error code "DigitalWrite not declared". Here's my sketch to turn Arduion Uno LED on and off. It seems to me that DigitalWrite is a function and not a variable.
// LED connected to pin 13
const int LED = 13;
void setup()
// Set digital pin as output
{
pinMode(LED, OUTPUT);
}
void loop()
{
DigitalWrite(LED, HIGH); //Turn on LED
Delay(1000); // Wait one second
DigitalWrite(LED, LOW); //Turn off LED
Delay(2000); // Wait two seconds
}