Skip to content

Instantly share code, notes, and snippets.

@Lomanic
Created September 21, 2019 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lomanic/1fc51b4ae0df0d69c9e994ee8d6a9cbe to your computer and use it in GitHub Desktop.
Save Lomanic/1fc51b4ae0df0d69c9e994ee8d6a9cbe to your computer and use it in GitHub Desktop.
Make Sonoff S20 internal LED blink
#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