TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

WebUSB Support for RP2040

22 点作者 roywashere超过 1 年前

4 条评论

westurner超过 1 年前
This makes an RP2040 Raspberry Pi Pico usable as a WebUSB 2x20 pin GPIO from JS or e.g. Python in WASM.<p>&#x2F;q rp2040 &quot;WebBluetooth&quot;<p>awesome-web-serial lists a few RP2040-compatible things: <a href="https:&#x2F;&#x2F;github.com&#x2F;louisfoster&#x2F;awesome-web-serial">https:&#x2F;&#x2F;github.com&#x2F;louisfoster&#x2F;awesome-web-serial</a><p>web-bluetooth-repl is a REPL over WebBluetooth with MicroPython devices that support Bluetooth: <a href="https:&#x2F;&#x2F;github.com&#x2F;siliconwitchery&#x2F;web-bluetooth-repl">https:&#x2F;&#x2F;github.com&#x2F;siliconwitchery&#x2F;web-bluetooth-repl</a><p>Pybricks does MicroPython over WebBluetooth with a NextJS app.
评论 #38034530 未加载
turbocrime超过 1 年前
i assumed webusb was entirely host-side, but apparently a device can provide a descriptor specifying a URI to the intended compatible page, and that seems to be one of the features of this PR.<p><a href="https:&#x2F;&#x2F;developer.chrome.com&#x2F;articles&#x2F;build-for-webusb&#x2F;#webusb-descriptors" rel="nofollow noreferrer">https:&#x2F;&#x2F;developer.chrome.com&#x2F;articles&#x2F;build-for-webusb&#x2F;#webu...</a><p>the rest of it seems a little strange. the webserial API should be able to talk to any class-compliant serial device, that&#x27;s already supported.<p><a href="https:&#x2F;&#x2F;developer.chrome.com&#x2F;articles&#x2F;serial&#x2F;#open-port" rel="nofollow noreferrer">https:&#x2F;&#x2F;developer.chrome.com&#x2F;articles&#x2F;serial&#x2F;#open-port</a><p>the 0x22 request type isn&#x27;t part of any webusb standard, it is from a tinyusb example program where they demo connecting webusb and webserial to the same device, which is a little strange and probably not what you&#x27;re doing with the rp2040.
roywashere超过 1 年前
I think it is super interesting to see that such a nice to have feature for such a big platform depends exclusively on a few individuals. I.e. there seems no-one from the Foundation driving this. I would have assumed there are at least one or two people there who would help out with this kind of stuff
jeroen79超过 1 年前
How can it have WebUSB when the RP2040 doesn&#x27;t have any wifi or network?
评论 #38024480 未加载