rf12_lowbat()

This checks the status of the RF12 low-battery detector. It wil be 1 when the supply voltage drops below 3.1V, and 0 otherwise. This can be used to detect an impending power failure, but there are no guarantees that the power still remaining will be sufficient to send or receive any further packets.

#include <RF12.h> 
#include <Ports.h> // needed to avoid a linker error :(

byte rf12_lowbat();

Parameters

None.