rc-switch icon indicating copy to clipboard operation
rc-switch copied to clipboard

Adjustments to esp8266

Open joroMaser opened this issue 2 years ago • 1 comments

#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.

joroMaser avatar Jan 05 '22 18:01 joroMaser