jspinella / pimoroni-trackball-circuitpy

CircuitPython library for using the Pimoroni Trackball module as a mouse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pimoroni-trackball-circuitpy

An adequate CircuitPython-compatible library for using the Pimoroni Trackball module as a mouse. Based on Pimoroni's official Python library, which is incompatible with CircuitPython.

I don't have a totally clear understanding of how the Pimoroni Trackball works under the hood or why their official library does some of the things that it does. Anyway, I find the Trackball unsuitable for desktop OS use as it loses precision at higher acceleration/sensitivity value (set by the multiplier in the code.py file). Maybe someone smarter than me can fix this, but I suspect it's a hardware issue (e.g. the ball is too small to have the precision of a traditional trackball mouse).

Dependencies

This code is tested to work with CircuitPython 7 and two of the libraries from the Adafruit CircuitPython 7 bundle:

  • adafruit_bus_device
  • adafruit_hid

About

CircuitPython library for using the Pimoroni Trackball module as a mouse

License:MIT License


Languages

Language:Python 100.0%