1
0

index.rst 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. The Trackball
  2. =============
  3. .. image:: trackball.pdf
  4. :target: trackball.pdf
  5. The trackball uses the same microcontroller and LUFA framework as the keyboard_, but instead of scanning a matrix of switches, it gets X and Y movement coordinates from the PMW3360DM-T2QU optical sensor that is connected via SPI.
  6. Wheel Mode, Middle Click
  7. ------------------------
  8. The trackball firmware has a special "wheel mode" that allows you to use it like a mouse wheel for scrolling or to perform a middle mouse click.
  9. You can enter wheel mode by pressing the left button and then pressing the right button while keeping the left button pressed. Release both buttons. Rolling the ball up and down will send wheel up/down commands. Clicking the right button will perform a middle click. Clicking the left button will exit wheel mode.
  10. Firmware
  11. --------
  12. You can find the Reform trackball firmware_ in the source folder "reform-trackball-fw".
  13. The trackball firmware is based on the LUFA USB device library and implements a USB HID Mouse. To modify the behaviour of the trackball, edit the file Mouse.c and rebuild the firmware by typing the following command in a terminal:
  14. .. code-block:: none
  15. make
  16. As with the keyboard, the trackball's MCU has to be in "Atmega DFU bootloader" USB mode. This is achieved by shorting the pins HWB and GND with a jumper and then briefly shorting the RESET pin to ground. The pins are marked on the silkscreen of the main trackball PCB.
  17. After a reset with HWB pulled to ground, The trackball will reappear as a Atmel DFU bootloader USB device. You can then upload your new firmware by executing:
  18. .. code-block:: none
  19. ./flash.sh
  20. .. _firmware: https://github.com/mntmn/reform/reform-trackball-fw
  21. .. _keyboard: ../keyboard/index.html
  22. Schematics
  23. ----------
  24. .. image:: reform-trackballb.pdf
  25. :target: reform-trackball.pdf