Skip to content

Instantly share code, notes, and snippets.

Created January 20, 2018 09:21
What would you like to do?
One of demos with pins included for D1M RFTXRX BLOCK.
Example for receiving
If you want to visualize a telegram copy the raw data and
paste it into
modified fo D1M RFTXRX BLOCK pins
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
mySwitch.enableReceive(D4); // D1 or D2 or D3 or D4
void loop() {
if (mySwitch.available()) {
output(mySwitch.getReceivedValue(), mySwitch.getReceivedBitlength(), mySwitch.getReceivedDelay(), mySwitch.getReceivedRawdata(),mySwitch.getReceivedProtocol());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment