#include <voltmeter.h>
Public Member Functions | |
void | poll (void) |
Voltmeter () |
Interface for Arduino-attached battery voltage meter.
Definition at line 47 of file voltmeter.h.
Voltmeter::Voltmeter | ( | ) | [inline] |
Constructor: sets poll period to 1000 msecs (one Hz).
Definition at line 51 of file voltmeter.h.
void Voltmeter::poll | ( | void | ) | [virtual] |
Poll interface.
When this function is called periodically, it reads the battery voltage, sending it in a serial message.
Implements ArduinoDevice.
Definition at line 56 of file voltmeter.cpp.