#include <sys/types.h>
Functions | |
int | btn_bat_measure (int n) |
u_char | btn_external_power (void) |
int btn_bat_measure | ( | int | n | ) |
this function returns the battery voltage in mV.
n | # of adc readings (between 10 and 100) |
u_char btn_external_power | ( | void | ) |
this function checks if you have external (unlimited) power.