Skip to content

Commit cd5f6ed

Browse files
authored
Update hid_mouse_log_filter.ino
Update the comment to contain a description of what this example really do. The text is mostly a copy from description of the function log_filter at the end of the source file.
1 parent 5aeca20 commit cd5f6ed

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

examples/DualRole/HID/hid_mouse_log_filter/hid_mouse_log_filter.ino

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@
1515
* - Device run on native usb controller (controller0)
1616
* - Host run on bit-banging 2 GPIOs with the help of Pico-PIO-USB library (controller1)
1717
*
18-
* Example sketch receive keyboard report from host interface (from e.g consumer keyboard)
19-
* and remap it to another key and send it via device interface (to PC). For simplicity,
20-
* this example only toggle shift key to the report, effectively remap:
21-
* - all character key <-> upper case
22-
* - number <-> its symbol (with shift)
18+
* Example sketch receive mouse report from host interface (from e.g consumer mouse)
19+
* and reduce large motions due to tremors by applying the natural log function.
20+
* It handles negative values and a dead zone where small values will not be adjusted.
21+
* Adjusted mouse movement are send via device interface (to PC).
2322
*
2423
* Requirements:
2524
* - [Pico-PIO-USB](https://github.com/sekigon-gonnoc/Pico-PIO-USB) library

0 commit comments

Comments
 (0)