Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xtrinch/webusb-arduino-react-example
Example app demonstrating the use of webusb to toggle some LED's from web -> arduino.
https://github.com/xtrinch/webusb-arduino-react-example
arduino react webusb webusb-demo
Last synced: 12 days ago
JSON representation
Example app demonstrating the use of webusb to toggle some LED's from web -> arduino.
- Host: GitHub
- URL: https://github.com/xtrinch/webusb-arduino-react-example
- Owner: xtrinch
- Created: 2020-12-18T16:32:00.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-19T16:17:57.000Z (about 4 years ago)
- Last Synced: 2024-11-11T11:07:22.956Z (about 2 months ago)
- Topics: arduino, react, webusb, webusb-demo
- Language: C++
- Homepage:
- Size: 236 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webusb-arduino-react-example
This repository is the react/platformio version of the demo you can find at https://github.com/webusb/arduino repository.
Contains two parts: sketch code (for platformio) and website code, demonstrating the use of webusb on arduino.
Sketch should be uploaded to one of the listed dev boards (see `Serial.ts`), if you add your own it should have a native USB interface.
React app is run with `yarn start`, spawns it at localhost:3000.
No need to modify any USB defines for platformio as it is necessary for the Arduino IDE.
End result is you being able to toggle three leds connected to the arduino: red, green and blue. You can toggle them via the website, provided you have actually put the LED's at the pins specified inside the sketch - 9, 10, 11.