Arduino_APDS9960 - setInterruptPin()

Sets APDS chip interrupt pin. The library tries to set the correct interrupt pin automatically based on the available board data. This function may be used in case the default pin is not correct or not available. The sensor is read even if the interrupt pin is not set or automatically found; setting the interrupt pin manually, if not automatically found, will increase performance.

Syntax

APDS.setInterruptPin(pin)

Parameters

  • pin: the board pin where the sensor interrupt pin is connected, or -1 if not connected.

Returns

None.

Example

APDS.setInterruptPin(x);

See also