This header-only Arduino library is based on on the C driver code for the Crazyflie quadcopter from Bitcraze. It differs in the following ways:
-
Unlike the Bitcraze PMW3901 Arduino repository, their C driver provides a data structure that includes a flag for whether motion was detected, which may be useful to know for sensor fusion. Hence my C++ class returns this flag along with the delta-X and delta-Y motion values.
-
Supports different SPI buses (SPI, SPI1, etc.)