Last active
June 9, 2017 16:19
-
-
Save jdieg0/b9b9907df9251bbfe9527bf33f4cada1 to your computer and use it in GitHub Desktop.
Blink-Beispiel für Wemos D1 mini
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
void setup() { | |
// LED-Pin (D4 oder auch BUILTIN_LED) auf Ausgang setzen | |
pinMode(BUILTIN_LED, OUTPUT); | |
} | |
void loop() { | |
// Der LED-Pin muss auf LOW gesetzt werden, damit die LED leuchtet | |
digitalWrite(BUILTIN_LED, LOW); | |
// 100 ms warten | |
delay(100); | |
// Ausgang auf HIGH setzen, damit LED wieder aus geht | |
digitalWrite(BUILTIN_LED, HIGH); | |
// 1 s warten | |
delay(1000); | |
// Die Loop-Funktion fängt wieder von vorn an | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment