rf12_onOff()
This can be used to send out slow bit-by-bit On Off Keying signals to other devices such as remotely controlled power switches operating in the 433, 868, or 915 MHz bands.
To use this, you need to first call rf12initialize() with a zero node ID and the proper frequency band. Then call rf12onOff() in the exact timing you need for sending out the signal. Once done, either call rf12onOff(0) to turn the transmitter off, or reinitialize the wireless module completely with a call to rf12initialize().
#include <RF12.h>
#include <Ports.h> // needed to avoid a linker error :(
void rf12_onOff(byte value);
Parameters
value
Turn the transmitter on (if true) or off (if false).
Notes
The timing of this function is relatively coarse, because SPI transfers are used to enable / disable the transmitter. This will add some jitter to the signal, probably in the order of 10 µsec.