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

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