rc-switch
rc-switch copied to clipboard
Adjustments to esp8266
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
Serial.begin(9600);
mySwitch.enableReceive(D2);
}
void loop() {
if (mySwitch.available()) {
Serial.println("OK");
}
}
Doesn't receive any data.