How to fix compilation error: digitalWrite() was not declared in this scope

Whenever I try to compile my program it gives me an error "Compilation error: digitalWrite() was not declared in this scope" I've never seen this error ever while using arduino ide I recently re-installed the ide and now this error keeps popping up here the code:

void setup() {
// put your setup code here, to run once:
pinMode(7, OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:
digitalWrite(11, HIGH);
delay(1000);
digitWrite(11, LOW)
}

This is a typing error.

Welcome to the forum

I bet it doesn't

Check your spelling of digitalWrite() in the sketch

thanks

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