just need a simple script
Once NODEMCU receive power it should power one GPIO 3 Times with a little hold of 1 Second between
can you help me whats wrong with this?
After flashing nothing is working
#define LED 4
void setup() {
// put your setup code here, to run once:
pinMode(LED, OUTPUT); // Port aus Ausgang schalten
delay(3000); //1 Sek Pause
digitalWrite(LED, LOW); //Led port ausschalten
delay(300); //1 Sek Pause
digitalWrite(LED, HIGH); //Led port einschlaten
delay(1000);
digitalWrite(LED, LOW); //Led port ausschalten
delay(300); //1 Sek Pause
digitalWrite(LED, HIGH); //Led port einschlaten
delay(1000);
digitalWrite(LED, LOW); //Led port ausschalten
delay(300); //1 Sek Pause
digitalWrite(LED, HIGH); //Led port einschlaten
}
void loop() {
// put your main code here, to run repeatedly:
}
Thanks for your help!!
Nico