Arduino_APDS9960 - begin()

Initialize the APDS gesture sensor.

Syntax

APDS.begin()

Parameters

None.

Returns

1 on success, 0 on failure.

Example

if (!APDS.begin()) {
    Serial.println("Error initializing APDS9960 sensor!");
}

See also