Changeset 703832c in avrstuff for grip2hid/README.md


Ignore:
Timestamp:
Sep 26, 2021, 10:16:19 AM (3 years ago)
Author:
Adrien Destugues <pulkomandy@…>
Branches:
main
Children:
e545350
Parents:
81b8d53
Message:

GrIP2HID: actually do HID (using the LUFA USB stack)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • grip2hid/README.md

    r81b8d53 r703832c  
    1111(2 gameports, each allowing to use 2 gamepads thanks to Gravis chaining system).
    1212
     13The gamepads are each reported as a separate USB report, and show up as 4 independant
     14gamepads on both Windows and Haiku. Buttons are assigned in this order:
     15green, yellow, red, blue, L1, R1, start, select, R2, L2. This order is reasonable
     16(but not perfect) while allowing to reuse the bits received from the gamepad almost
     17directly to fill the HID report. The only change needed is inverting the Y axis,
     18because USB wants the up direction to be lowest values.
     19
    1320It is powered by an AT90USB AVR microcontroller, because these implement USB in
    14 hardware and have easily usable external interupts (PCINT) making it much easier
    15 to implement the protocol (this helps because the gamepad is the master and
    16 drives the clock).
     21hardware and make it easy to implement an HID device.
     22
     23You need the LUFA USB stack to compile this project. I am not including it to
     24avoid code duplication. Download and extract it yourself, or set the LUFA_PATH variable
     25to where you already have it when compiling.
    1726
    1827[Further reading on GrIP](http://pulkomandy.tk/_/_Electronique/_Gravis%20Interface%20Protocol)
Note: See TracChangeset for help on using the changeset viewer.