earlephilhower / arduino-pico

Raspberry Pi Pico Arduino core, for all RP2040 and RP2350 boards
GNU Lesser General Public License v2.1
2.04k stars 423 forks source link

Add true 10- and 16-bit joystick modes #2276

Closed earlephilhower closed 3 months ago

earlephilhower commented 3 months ago

Fixes #2275

Adds Joystick.use10bit and Joystick.use16bit methods. 10-bit is unsigned from 0...1023 while 16-bit is signed -32767..32767. Defines a new HID descriptor to support the increased resolution.