2 #include "dev/battery-sensor.h"
3 #include "lib/sensors.h"
6 PROCESS(battery_monitor_process,
"Battery Voltage Monitor");
7 AUTOSTART_PROCESSES(&battery_monitor_process);
15 SENSORS_ACTIVATE(battery_sensor);
30 printf(
"ADC value : %d\n", battery_sensor.value(0));