I've not tried the USB HID gadget on RPiOS Bookworm.
On Bullseye and earlier /dev/hidg0 appears automatically once the gadget has been configured.
I usually do that as follows:
On Bullseye and earlier /dev/hidg0 appears automatically once the gadget has been configured.
I usually do that as follows:
- Add the following to config.txt
Code:
dtoverlay=dwc2 - Make sure the following is not present in config.txt or if it is present make sure it is commented outIf present and not commented out (or not inside an inactive conditional filter) this always takes precedence over loading the dwc2 overlay.
Code:
otg_mode=1 - Run a shell script like this one from /etc/rc.local. Or cron, or a systemd service.
Statistics: Posted by thagrol — Wed Jun 12, 2024 11:52 am