1
0
Fork 0

Add PMW3389 optical sensor Support (Updated) (#15740)

Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
Alabastard-64 2022-01-11 15:33:13 -07:00 committed by GitHub
parent a7eb27b867
commit 2842ab4052
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 721 additions and 294 deletions

View file

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