RGB and Gesture Sensor - APDS-9960

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
demoontz
Posts: 18
Joined: Wed Feb 15, 2017 12:39 pm

RGB and Gesture Sensor - APDS-9960

Post by demoontz » Sat Apr 08, 2017 8:31 pm

Hello!
did someone use this awesome device?
i try to understand how to connect it with micropython

User avatar
deshipu
Posts: 1364
Joined: Thu May 28, 2015 5:54 pm

Re: RGB and Gesture Sensor - APDS-9960

Post by deshipu » Sat Apr 08, 2017 10:29 pm

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.

demoontz
Posts: 18
Joined: Wed Feb 15, 2017 12:39 pm

Re: RGB and Gesture Sensor - APDS-9960

Post by demoontz » Mon Apr 10, 2017 7:10 pm

i found for python https://github.com/rm-hull/apds9960
it can be used for micropython with some refactoring?

User avatar
deshipu
Posts: 1364
Joined: Thu May 28, 2015 5:54 pm

Re: RGB and Gesture Sensor - APDS-9960

Post by deshipu » Mon Apr 10, 2017 11:09 pm

Have you actually looked at the code there?

User avatar
pythoncoder
Posts: 4347
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: RGB and Gesture Sensor - APDS-9960

Post by pythoncoder » Tue Apr 11, 2017 6:21 am

Quite :lol:
Peter Hinch

demoontz
Posts: 18
Joined: Wed Feb 15, 2017 12:39 pm

Re: RGB and Gesture Sensor - APDS-9960

Post by demoontz » Tue Apr 11, 2017 6:49 pm

yeah.. =))
sorry.

here another python code:
http://codegist.net/snippet/python/apds ... hio_python

User avatar
deshipu
Posts: 1364
Joined: Thu May 28, 2015 5:54 pm

Re: RGB and Gesture Sensor - APDS-9960

Post by deshipu » Tue Apr 11, 2017 10:52 pm

That should be relatively easy to adapt to machine.i2c calls.

demoontz
Posts: 18
Joined: Wed Feb 15, 2017 12:39 pm

Re: RGB and Gesture Sensor - APDS-9960

Post by demoontz » Wed May 03, 2017 6:55 pm

i`v done with sensor, but guess we can port C driver to micropython, if its need.

User avatar
gcarver
Posts: 34
Joined: Sun Oct 26, 2014 4:07 am
Location: New Market, Maryland
Contact:

Re: RGB and Gesture Sensor - APDS-9960

Post by gcarver » Sun Feb 18, 2018 12:21 am

demoontz wrote:
Mon Apr 10, 2017 7:10 pm
i found for python https://github.com/rm-hull/apds9960
it can be used for micropython with some refactoring?
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.
End of line...

jarekd
Posts: 13
Joined: Mon Aug 21, 2017 3:54 pm

Re: RGB and Gesture Sensor - APDS-9960

Post by jarekd » Mon Feb 19, 2018 12:47 am

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...

Post Reply