Port anaRead()
Perform an analog-to-digital conversion on the AIO pin. Returns a value in the range 0 .. 1023.
#include <Ports.h>
#include <RF12.h> // needed to avoid a linker error :(
Port port (1);
word port.anaRead();
Parameters
None.
Notes
This is a thin wrapper around the Arduino analogRead() function.