examples: catalog every shipping use of usbif - #9
Merged
Conversation
Keep the existing demos; add the missing device and host scripts (soundcard, HID both ways, RAM disk, enum, CDC, UAC host play/capture); grow uvc_display with a jpegio MJPEG branch; correct stale midi_host and uac_pump headers; document board-to-board pairings and firmware holes by issue number.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends the
usbifexamples so each shipping capability has a stranger-readable script, without touchingsrc/.midi_host.py(host MIDI is proven) anduac_pump.py(Python FIFO helper, not the shipping card).soundcard.py(C pump),hid_keyboard.py,hid_mouse.py,ram_drive.py.host_enum.py,hid_host.py,usb_serial.py,usb_speaker.py,usb_mic.py.uvc_display.pyprefers MJPEG viajpegiowhen present, falls back to YUY2.examples/README.mdwith class×role grid, P4-device / S3-host pairings (headline: P4soundcard.py+ S3usb_speaker.py), VBUS warning.Firmware holes filed (not fixed here)
Device.functions()omits videoOut of scope
Hardware runs this session;
src/changes; closing accidental #6 (bot lackscloseIssue).Test plan
soundcard.py— Speakers appear on a PC; audio audibleusb_speaker.pyhosting the P4 — tone on P4 speakerhid_keyboard.py/hid_mouse.pyagainst a PChid_host.pywith a keyboard (M1 events)uvc_display.pywith jpegio firmware (MJPEG) and without (YUY2)host_enum.pyon board and on desktop CPythoncostume_selftest.pystill 31/31