Created
March 27, 2017 09:34
-
-
Save bepitulaz/faabedd56421abde6c8792f69098e93c to your computer and use it in GitHub Desktop.
Menyalakan LED Pada ESP8266
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
#define LEDPIN 2 | |
void setup() | |
{ | |
pinMode(LEDPIN, OUTPUT); | |
} | |
void loop() | |
{ | |
digitalWrite(LEDPIN, HIGH); // led menyala | |
delay(1000); | |
digitalWrite(LEDPIN, LOW); // led mati | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment