Simple Script at start i need 3 times to blink a External LE
Posted: Sun Jan 14, 2018 10:33 am
Hi all,
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
Thanks for your help!!
Nico
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
Code: Select all
#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