tinygo-org / tinygo

Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
https://tinygo.org
Other
15.25k stars 900 forks source link

Configure rp2040's usb bus (HID, VID) and detect it how sound card #3790

Open csm7 opened 1 year ago

csm7 commented 1 year ago

Hello guis, i use tinyGo v0.27.0 to program WaveShare rp2040-zero. And have little problems. Tell me out how to write code for rp2040-zero which use USB bus for transfer data between rp2040-zero and PC. The rp2040's board need to be configure (setup VID and HID of the board) to PC detect it how sound card when rp2040-zero connect to PC via USB bus. I try to use machine library (machine.USBDev). But there are no any examples (maybe i haven't been found) which are described how to do it.

deadprogram commented 1 year ago

Sounds like you are asking for Audio Device Class support, which is not yet available.