ESP8266 D1 Mini, RCSwitch library - Interrupt Pin?


I'm trying to set up an ESP8266 based board (WeMos D1 Mini) with a 433Mhz radio receiver but I'm not sure which pin I should use for, say, interrupt 0. The library seems to work like this: mySwitch.enableReceive(0); // Receiver on interrupt 0 / Pin 2 (Uno) Would it be the same as interrupt 0 = pin 2 in Arduino IDE for this board?


ESP8266's attachInterrupt() just uses the pin number rather than an intrrupt vector number, so try attaching the receiver to GPIO 13 and call mySwitch.enableReceiver(13) with the pin number