Skip to content

Instantly share code, notes, and snippets.

Hi,
working code (g++ -c -o send.o send.cpp OR put this code into send.cpp file from RPIUtils and 'make'):
/*start*/
#include <stdio.h>
int main(int argc, char *argv[]) {
int PIN = 0;
int systemCode = atoi(argv[1]);
if (wiringPiSetup () == -1) return 1;
RCSwitch rf_cmd = RCSwitch();
rf_cmd.enableTransmit(0);