Power management
From OpenTom
the hardware supports power management.
There is a GPIO pin used to switch on/off the device.
the code also talks about an 'ignote' -- if you take into account that there is also
B08 IGNITION INP Pull-Down resistor within TTGO Ignition sense ..
I would assume that this pin is used to maybe switch on display et all.
see source code trunk: ..../drivers/Barcelona/Power/
You can read the battery status with this program :
int batfd;
batfd = open("/dev/battery", O_RDWR);
BATTERY_STATUS status;
ioctl (batfd, IOR_BATTERY_STATUS, &status);
printf ("Battery Voltage = %d\n", status.u16BatteryVoltage); // battery voltage
printf ("Reference Voltage = %d\n",status.u16ReferenceVoltage); // reference voltage
printf ("Charge Current = %d\n",status.u16ChargeCurrent); // Charge current
close(batfd);
And then you get, for example :
Battery Voltage = 650 Reference Voltage = 383 Charge Current = 33
But what are the units ?

