Functional library driver for PMW3360DM-T2QU optical navigation sensor.
Datasheet provided on the official website by manufacturer PixArt is outdated. This document is labeled as "Version 1.30 |6 April 2016". An updated datasheet can be found on Tindie.com website, here. This file is labeled as "Version 1.50 | 26 Sep 2016" and includes more information like the chip's registers functionalitys detailed.
This code has been test on Adafruit Feather M0 Express board (SAMD21G18A microcontroller) and Sparkfun Arduino Pro Micro 3.3v board (ATmega32u4 microcontroller).
In order to make work this sensor, is needed to load a firmware provided by manufacturer (Pixart) every time is powered on. I don't have found any clue of this firmware on the official website, also, manufacturer doesn't respond to my emails. I used firmware I found on @mrjohnk Github. Thank you very much friend.
Note that this firmware is not the same used on the ADNS-9800 sensor. PMW3360DM-T2QU's firmware weights about 4Kbytes and ADNS-9800's firmware can load 1.5Kbytes or 3Kbytes. Latest release of this firmware looks like to be 0x40.