rc switch to decode rf transmissions in arduino

Thread Starter

denison

Joined Oct 13, 2018
328
Hi All, I have copied a program from arduino exactly even though I don't completely understand it. I am getting the answer " output not declared" in the compilation. Can anybody tell me how I should declare the output? I am attaching the sketch;
#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
Serial.begin(9600);
mySwitch.enableReceive(0); // Receiver on interrupt 0 => that is pin #2
}

void loop() {
if (mySwitch.available()) {
output(mySwitch.getReceivedValue(), mySwitch.getReceivedBitlength(), mySwitch.getReceivedDelay(), mySwitch.getReceivedRawdata(),mySwitch.getReceivedProtocol());
mySwitch.resetAvailable();
}
}
 
Top