Skip to content

Instantly share code, notes, and snippets.

@lol97
Last active January 22, 2024 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lol97/be591d2e363e063100cc81759d4b41b3 to your computer and use it in GitHub Desktop.
Save lol97/be591d2e363e063100cc81759d4b41b3 to your computer and use it in GitHub Desktop.
/*
* Blink NodeMCU Build In
* sufyan97
*/
#define LED D0 //LED BUILD IN NodeMCU ada di GPIO16 (D0)
void setup() {
// put your setup code here, to run once:
pinMode(LED, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LED, LOW); //Nyalakan LED
delay(500); //Tunggu selama 0.5 detik
digitalWrite(LED, HIGH); //Padamkan LED
delay(2000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment