-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Apds9960 gesture sensing functionality #97428
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
base: main
Are you sure you want to change the base?
Conversation
526e4b1 to
708436b
Compare
|
drivers/sensor/apds9960/Kconfig
Outdated
| config APDS9960_GESTURE_PROXIMITY | ||
| int "Gesture Proximity Enter Threshold" | ||
| range 0 255 | ||
| default 40 | ||
|
|
||
| config APDS9960_GESTURE_DIFFERENCE | ||
| int "Minimum IR diode difference for gesture" | ||
| range 0 255 | ||
| default 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's put this on dts-bindings, as it may vary for different instances of the same sensor type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think with the way the sensor is setup currently, there can only be one sensor on the i2c bus. For example, gain is also defined in the Kconfig. I can try to move these to the dts, would you like all the other parameters such as gain, pulse length, and led boost also be moved to the dts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't gesture detection be a trigger as well?
708436b to
cc38c00
Compare
Allow for multiple apds9960s to be present Signed-off-by: Thomas Lang <[email protected]>
Created sensor specific channels and Kconfig for gesture sensing. Signed-off-by: Thomas Lang <[email protected]>
Created logic to calculate gestures from the APDS9960 sensor Signed-off-by: Thomas Lang <[email protected]>
Added a new channel fetch to demonstrate reading gestures Signed-off-by: Thomas Lang <[email protected]>
cc38c00 to
dded99d
Compare
|



Description
This PR updates the APDS9960 gesture sensor with the ability to process gestures from it's gesture engine.
Specific Changes
Testing
Testing was done with a nRF52840dk, with the following device overlay:
In addition, in the prj.conf file, the following line was modified:
'CONFIG_APDS9960_ENABLE_GESTURE=y'
The new sample program output shows the following output with gestures:
