Trying to clear error - "DigitalWrite not declared in this scope"

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
}

DigitalWrite() should be digitalWrite()

FOUND THE PROBLEM(S) WITH THE SKETCH - TYPO, s what else?

Thanks Bob, I didn't spend enough time checking the spellings.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.