kmk_firmware/docs/en/adns9800.md
AndersonTorres 0ab6887fbe Move docs/ to docs/en/
It allows comparison between the directories and helps translations.
2022-10-25 01:24:49 -07:00

539 B

ADNS9800

Add this module for controlling ADNS9800 optical sensor.

from kmk.modules.adns9800 import ADNS9800
keyboard.modules.append(ADNS9800(cs=board.GP0, sclk=board.GP2, miso=board.GP4, mosi=board.GP3, invert_y=True))

Firmware for this sensor has to be obtained separately and placed in kmk\modules\adns9800_firmware.py

firmware = (
    b'\x03'
    b'\xa6'
    ...
)

Constructor parameters

ADNS9800(cs=cs_pin, sclk=clock_pin, miso=miso_pin, mosi=mosi_pin, invert_x=False, invert_y=False)