Page 1 of 2
RGB and Gesture Sensor - APDS-9960
Posted: Sat Apr 08, 2017 8:31 pm
by demoontz
Hello!
did someone use this awesome device?
i try to understand how to connect it with micropython
Re: RGB and Gesture Sensor - APDS-9960
Posted: Sat Apr 08, 2017 10:29 pm
by deshipu
No, but looking at the datasheet at
https://cdn.sparkfun.com/datasheets/Sen ... ds9960.pdf it shouldn't be too hard -- it's a standard I2C device.
Re: RGB and Gesture Sensor - APDS-9960
Posted: Mon Apr 10, 2017 7:10 pm
by demoontz
i found for python
https://github.com/rm-hull/apds9960
it can be used for micropython with some refactoring?
Re: RGB and Gesture Sensor - APDS-9960
Posted: Mon Apr 10, 2017 11:09 pm
by deshipu
Have you actually looked at the code there?
Re: RGB and Gesture Sensor - APDS-9960
Posted: Tue Apr 11, 2017 6:21 am
by pythoncoder
Quite
Re: RGB and Gesture Sensor - APDS-9960
Posted: Tue Apr 11, 2017 6:49 pm
by demoontz
Re: RGB and Gesture Sensor - APDS-9960
Posted: Tue Apr 11, 2017 10:52 pm
by deshipu
That should be relatively easy to adapt to machine.i2c calls.
Re: RGB and Gesture Sensor - APDS-9960
Posted: Wed May 03, 2017 6:55 pm
by demoontz
i`v done with sensor, but guess we can port C driver to micropython, if its need.
Re: RGB and Gesture Sensor - APDS-9960
Posted: Sun Feb 18, 2018 12:21 am
by gcarver
I know it's been a while on this thread, but I adapted the code in the above link to MicroPython. It is obvious that code was never used in it's current form. It has a few syntax errors and omissions. However with the few fixes it does work.
Re: RGB and Gesture Sensor - APDS-9960
Posted: Mon Feb 19, 2018 12:47 am
by jarekd
gcarver wrote: ↑Sun Feb 18, 2018 12:21 am
I know it's been a while on this thread, but I adapted the code in the above link to MicroPython. It is obvious that code was never used in it's current form. It has a few syntax errors and omissions. However with the few fixes it does work.
Hey
Are you sharing somewhere your driver code? I was just about to start writing my own...