Last active
January 22, 2024 15:20
-
-
Save lol97/be591d2e363e063100cc81759d4b41b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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