| aMD23_GetBatteryVoltage | Index |
Definition:
| char aMD23_GetBatteryVoltage( | unsigned char controllerAddr); |
Parameters:
| controllerAddr | - | The I2C bus address of the MD23. Default is 176 (aka 0xB0). |
Return Value:
Description:
This routine gets the battery voltage from the MD23 as a 8-bit number. The value is scaled by 10. For example, with a battery voltage of 12.1V, the reading will be 121.
Example:
r = aMD23_GetBatteryVoltage(MD23_ADDR);
This would read the battery voltage from a default MD23.
Related: