Skip to content

Commit

Permalink
clarified
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Schlieper committed Sep 26, 2018
1 parent b6ec6b0 commit 20ad3f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/USB.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# USB Protocol

The Teensy presents itself as a Generic Desktop **H**uman **I**nterface **D**evice (HID) to the host computer. It has one configuration that transfers data to the host computer via an Interrupt IN pipe. All data is contained in 9 bytes described by the following configuration report descriptor:
The Teensy presents itself as a Generic Desktop Game Pad **H**uman **I**nterface **D**evice (HID) to the host computer. It has one configuration that transfers data to the host computer via an Interrupt IN pipe. All data is contained in 9 bytes described by the following configuration report descriptor:

```
Collection (Application)
Expand Down Expand Up @@ -31,6 +31,6 @@ Collection (Application)
End Collection
```

The first 8 bytes contain the first 8 channels the receiver sends. The channel values of 0 to 2047 are converted to a USB friendly signed byte of -127 to 127. The next 8 channels get encoded into 1 byte as buttons that are either "on" or "off" (one bit equals one button). If the converted channel value is greater than zero the button is "on" (1) and otherwise "off" (0).
The first 8 bytes contain the first 8 channels the receiver sends. The channel values of 0 to 2047 are converted to USB friendly signed bytes of -127 to 127. The next 8 channels get encoded into 1 byte as buttons that are either "on" or "off" (one bit equals one button). If the converted channel value is greater than zero the button is "on" (1) and otherwise "off" (0).

Vendor and Product ID (0x03EB, 0x2043) belong to Atmel and should under no circumstances be used commercially. Please see LUFA documentation for details.
Vendor and Product ID (0x03EB, 0x2043) belong to Atmel and should under no circumstances be used commercially. Please see LUFA documentation for details.

0 comments on commit 20ad3f6

Please sign in to comment.