-
Notifications
You must be signed in to change notification settings - Fork 18
Proximity/Color enable #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I took a look at thils while doing some APDS9960 testing with a Clue today, without using the The TL;DR is that the state you're observing is being flipped by To double-check this I took a look with a logic analyzer and looked at the source of each bus transaction. It was easier to make sense of by shifting it into a table, which I've added below. This data was generated by a Clue running CircuitPython 7.1.0-beta0 with the freshest version of this driver (5e69b20)
The final state of the device after this driver's init has color, proximity, and gesture disabled at startup and those settings appear to stick after the init. The enabled bit in the There are some interseting choices made during the init that might bear closer examination and experimentation, like some of the gesture config that's going on, and the use of |
I think this has been resolved by #39 |
The CLUE module sets the sensor object's enable_color and enable_proximity to true before asking for the related data. It never sets them to false. More interestingly I don't see where in the sensor code those values get propagated to the sensor enable register, although they do get initialized from the register value.
The text was updated successfully, but these errors were encountered: