APDS9960
¶
Driver class for the APDS9960 board. Supports gesture, proximity, and color detection.
- Author(s): Michael McWethy
-
class
adafruit_apds9960.apds9960.
APDS9960
(i2c, *, interrupt_pin=None, address=57, integration_time=1, gain=1)[source]¶ APDS9900 provide basic driver services for the ASDS9960 breakout board
-
color_data
¶ Tuple containing r, g, b, c values
-
color_data_ready
¶ Color data ready flag. zero if not ready, 1 is ready
-
color_gain
¶ Color gain value
-
enable
¶ Board enable. True to enable, False to disable
-
enable_color
¶ Color detection enable flag. True when color detection is enabled, else False
-
enable_gesture
¶ Gesture detection enable flag. True to enable, False to disable. Note that when disabled, gesture mode is turned off
-
enable_proximity
¶ Enable of proximity mode
-
enable_proximity_interrupt
¶ Proximity interrupt enable flag. True if enabled, False to disable
-
gesture
()[source]¶ Returns gesture code if detected. =0 if no gesture detected =1 if an UP, =2 if a DOWN, =3 if an LEFT, =4 if a RIGHT
-
gesture_dimensions
¶ Gesture dimension value: range 0-3
-
gesture_fifo_threshold
¶ Gesture fifo threshold value: range 0-3
-
gesture_gain
¶ Gesture gain value: range 0-3
-
gesture_proximity_threshold
¶ Proximity threshold value: range 0-255
-
integration_time
¶ Proximity integration time: range 0-255
-
proximity
¶ Proximity value: range 0-255
-
proximity_interrupt_threshold
¶ Tuple containing low and high threshold followed by the proximity interrupt persistance. When setting the proximity interrupt threshold values using a tuple of zero to three values: low threshold, high threshold, persistance. persistance defaults to 4 if not provided
-
colorutility
¶
Helper functions for color calculations
- Author(s): Michael McWethy