Add PMW3389 optical sensor Support (Updated) (#15740)
Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
parent
a7eb27b867
commit
2842ab4052
9 changed files with 721 additions and 294 deletions
|
@ -56,17 +56,6 @@
|
|||
# error "No chip select pin defined -- missing PMW3360_CS_PIN"
|
||||
#endif
|
||||
|
||||
/*
|
||||
The pmw33660 and pmw3389 use the same registers and timing and such.
|
||||
The only differences between the two is the firmware used, and the
|
||||
range for the DPI. So add a semi-secret hack to allow use of the
|
||||
pmw3389's firmware blob. Also, can set the max cpi range too.
|
||||
This should work for the 3390 and 3391 too, in theory.
|
||||
*/
|
||||
#ifndef PMW3360_FIRMWARE_H
|
||||
# define PMW3360_FIRMWARE_H "pmw3360_firmware.h"
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
int8_t motion;
|
||||
bool isMotion; // True if a motion is detected.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue