USB Host Shield Mouse Passthrough Sketch Generator

Generates a sketch for USB Host Shield mouse passthrough with mouse input injection. Configured for Lunar V2, but can be used for other projects.



Paste one captured HID report line per action below. The tool infers button byte, bit masks, dx/dy/wheel offsets and generates a ready-to-flash sketch. Inputs accepted as hex or decimal (e.g. 00 01 FF 00 00 01 or 0x00,0x01,0xFF).

1) Samples (one report per field)

Advanced / Manual Overrides (use if inference fails or you want to force values)

2) Inferred Mapping

Run “Infer Mapping” to see results…

3) Generated Sketch