tips-HIDmouse
マウスを自作する(トラックボールが本当のところ)
github
https://github.com/cyborg5/TinyUSB_Mouse_and_Keyboard
HIDの意味
HID
interface ( mouse )
Offset/Length | Value | ||
---|---|---|---|
Lenth | 0/1 | ディスクリプタ:9byte | 0x09 |
Descriptor | 1/1 | ディスクリプタ・タイプInterface=0x04h | 0x04 |
Interface番号 | 2/1 | インターフェイス番号(#0から) | 0x01 |
AlternateSetting | 3/1 | 代替設定をする際の番号 | 0x00 |
Number of Endpoint | 4/1 | このインターフェイスが持つEndpointの数(0を除く) | 0x01 |
interface class | 5/1 | USB/IFが | 0x03 |
interface_sub_class | 6/1 | サブクラスコード | 0x01 |
interface_protcol | 7/1 | 0:none_1:keybord_2:mouse | 0x02 |
interface |
bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|
ボタン 3bit | 0 | 0 | 0 | 0 | 0 | ボタン3 | ボタン2 | ボタン1 |
X軸方向8bit(min-127/max127) | ||||||||
y軸方向8bit(-127 / 127) |
制作記事
( センサーが手に入らない。。(笑))::壊れたマウスは捨てられないね。。