Created
March 6, 2016 12:53
-
-
Save gyengus/6ff26275883e05fcf175 to your computer and use it in GitHub Desktop.
redbear_duo_blink.ino
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
int led = D7; | |
SYSTEM_MODE(AUTOMATIC); //connect to cloud | |
void setup() { | |
pinMode(led, OUTPUT); | |
Particle.publish("Local IP", String(WiFi.localIP())); | |
} | |
void loop() { | |
digitalWrite(led, HIGH); | |
delay(100); | |
digitalWrite(led, LOW); | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment