Home - Getting Started - Constructor - Initialization - Functions - Examples
deviceFound() - findFirstDevice() - address() - adc() - voltage() - percent() - version() - compensation() - sleep() - isSleeping() - wake() - reset() - quickstart() - alertIsActive() - clearAlert() - threshold()
deviceFound()
Description
Determines if the device has been found on the i2c bus with the specified address.
Parameters
None
Returns
found : bool
Example
This snippet of code demonstrates how this method can be used to detect the device on the bus.
if (FuelGauge.deviceFound())
{
Serial.println("The device has been found.");
}
else
{
Serial.println("No device found.")
}
Notes
None.