Added ESPilight libs

This commit is contained in:
Paul committed 2018-09-21 18:02:15 +01:00
1 parent 0e743a0e33
commit d2c3373b8e
138 files changed
+18414

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
/*
Basic ESPiLight transmit example
https://github.com/puuu/espilight
*/
#include <ESPiLight.h>
#define TRANSMITTER_PIN 13
ESPiLight rf(TRANSMITTER_PIN);
void setup() { Serial.begin(115200); }
// Toggle state of elro 800 switch evrey 2 s
void loop() {
rf.send("elro_800_switch", "{\"systemcode\":17,\"unitcode\":1,\"on\":1}");
delay(2000);
rf.send("elro_800_switch", "{\"systemcode\":17,\"unitcode\":1,\"off\":1}");
delay(2000);
}