Home - Getting Started - Constructor - Initialization - Functions - Examples
deviceFound() - findFirstDevice() - address() - adc() - voltage() - percent() - version() - compensation() - sleep() - isSleeping() - wake() - reset() - quickstart() - alertIsActive() - clearAlert() - threshold()
isSleeping()
Description
Determines if the device is in sleep mode or not. Returns true
if the device is sleeping; false otherwise.
Parameters
None
Returns
sleeping : bool
Example
The sample code below demonstrates how to check if the device is in sleep mode or not.
if (FuelGauge.isSleeping())
{
Serial.println("Fuel Gauge is in sleep mode.");
}
else
{
Serial.println("Fuel Gauge is not in sleep mode.");
}
Notes
Entering Sleep mode does not clear the interrupt. See also wake() and sleep().