int Led Pin =2; // D4 Pin also refereed as pin no2 in Node MCU void setup() { pinMode(LedPin, OUTPUT); Serial.begin(9600); } void loop() { digitalWrite(LedPin, HIGH); delay(1000); digitalWrite(LedPin, LOW); delay(1000); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter