adafruit / Adafruit_CircuitPython_APDS9960

Adafruit Bundle driver for APSD9960 Gesture breakout board
MIT License
11 stars 17 forks source link

Change proximity to a property #19

Closed caternuson closed 4 years ago

caternuson commented 4 years ago

BREAKING CHANGE

For #18

Change proximity to a property. Examples and docs updated as needed. Also added new example apds9960_simpletest.py to comply with standard practice for example naming.

Adafruit CircuitPython 5.0.0 on 2020-03-02; Adafruit CLUE nRF52840 Express with nRF52840
>>> import board
>>> from adafruit_apds9960.apds9960 import APDS9960
>>> apds = APDS9960(board.I2C())
>>> apds.enable_proximity
False
>>> apds.proximity
0
>>> apds.enable_proximity = True
>>> apds.proximity
32
>>> apds.proximity
84
>>>