Added ESPilight libs
This commit is contained in:
1 parent
0e743a0e33
commit
d2c3373b8e
138 files changed
+18414
No files matched your search
Executable
+21
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user