mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
| .. | ||
| apds9960 | ||
| ChangeLog | ||
| LICENSE | ||
| manifest.py | ||
| README.md | ||
Python (and MicroPython) APDS-9960 Library
Python library for the APDS-9960 gesture sensor developed while I was looking to get the APDS-9960 to work with a Raspberry Pi to build a user interface feeling like in Minority Report.
This library is a port of the APDS-9960 Raspberry Pi Library of Justin Woodman. Sadly his library is coded in C++ and seems not to be maintained any more.
This library has been tested with SparkFun RGB and Gesture Sensor - APDS-9960 but should work with any other APDS-9960 based I²C device, too.
Installation
This library is available from PyPi. You may want to setup a virtualenv before installing the library using:
pip install apds9960
Features of the APDS-9960
- operational voltage: 3.3V
- ambient light & RGB color sensing
- proximity sensing
- gesture detection
- operating range: 10 - 20cm
- I²C interface (hard wired I²C address: 0x39)
Documentation & Examples
- RPi - connect and configure the APDS-9960 on Raspberry Pi
- Example scripts:
- simple ambient light level demo: rpi, micropython
- simple gesture detection demo: rpi, micropython
- simple proximity level demo: rpi, micropython