Created
September 21, 2019 19:31
-
-
Save Lomanic/1fc51b4ae0df0d69c9e994ee8d6a9cbe to your computer and use it in GitHub Desktop.
Make Sonoff S20 internal LED blink
This file contains hidden or 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 RELAY_PIN 12 | |
#define LED_PIN 13 | |
void setup() { | |
Serial.begin(115200); | |
Serial.println("START"); | |
pinMode(LED_PIN, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(LED_PIN, HIGH); | |
delay(1000); | |
digitalWrite(LED_PIN, LOW); | |
delay(1000); | |
Serial.println("LED"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment