tomu-samples
tomu-samples copied to clipboard
Create a WebUSB compatible example
- https://wicg.github.io/webusb/
- https://developers.google.com/web/updates/2016/03/access-usb-devices-on-the-web
Ultimately it would be awesome if someone could go to the Tomu website to do a firmware upgrade of their device!
This demo would be good to get working -> https://github.com/sowbug/weblight
I would love to port this example to TOMU and started doing a few basic things like vendor and product ID changes to a fork of the above repo, but until the crowd-sourced hardware is released I can’t get but so much done on it.
I believe the samples are already WebUSB compatible as far as flashing with no changes, since the https://dfu.tomu.im is simply using DFU under the hood in Javascript, you just need to make sure you hit the HTTPS site to allow access to devices. You can also use https://devanlai.github.io/webdfu/dfu-util/ to update your Tomu bootloader and flash programs, which interestingly I found before I knew about Tomu having its own copy of that site. :)
After reading up further on the above example I agree it could be awesome to interact with the Tomu without having to flash, so maybe dropping a "WebUSB enable" payload like the Serial emulation payload and then being able to send commands to it from a website dynamically instead of having to compile and flash all the time or run a serial emulator to communicate.
I got a working demo with the usb_simple sample going: https://auscompgeek.github.io/tomu-web-led/