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
|
@ -21,7 +21,7 @@
|
|||
#include "wait.h"
|
||||
#include "debug.h"
|
||||
#include "print.h"
|
||||
#include PMW3360_FIRMWARE_H
|
||||
#include "pmw3360_firmware.h"
|
||||
|
||||
// Registers
|
||||
// clang-format off
|
||||
|
@ -79,9 +79,6 @@
|
|||
// clang-format on
|
||||
|
||||
// limits to 0--119, resulting in a CPI range of 100 -- 12000 (as only steps of 100 are possible).
|
||||
// Note that for the PMW3389DM chip, the step size is 50 and supported range is
|
||||
// up to 16000. The datasheet does not indicate the minimum CPI though, neither
|
||||
// whether this uses 2 bytes (as 16000/50 == 320)
|
||||
#ifndef MAX_CPI
|
||||
# define MAX_CPI 0x77
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue