Giter VIP home page Giter VIP logo

Comments (9)

hathach avatar hathach commented on August 11, 2024 1

@PTS93 feel free to do so, I push an PR for webusb-rgb to control on-board neopixel already, you may want to check that out. My javascript and html already exceed its limit with these 2 examples :D
#23

from adafruit_tinyusb_arduino.

timonsku avatar timonsku commented on August 11, 2024

Kind of related, where is the arduino sketch for the existing webusb example?

from adafruit_tinyusb_arduino.

hathach avatar hathach commented on August 11, 2024

@PTS93 after these 2 PRs
adafruit/Adafruit_nRF52_Arduino#313
#22

starting with nrf first, I will update the samd core later on.

from adafruit_tinyusb_arduino.

hathach avatar hathach commented on August 11, 2024

please have an example for 3 x PWM output - so we can use https://webusb.github.io/arduino/demos/rgb/

I think it is better to use on-board neopixel which is on most of our feather board. 3 PWM work as well, but it is secondary via compiler switch.

from adafruit_tinyusb_arduino.

ladyada avatar ladyada commented on August 11, 2024

OK yes neopixel is good!

from adafruit_tinyusb_arduino.

hathach avatar hathach commented on August 11, 2024

@PTS93 it is merged to https://github.com/adafruit/Adafruit_TinyUSB_Arduino/tree/master/examples/WebUSB/webusb_serial

from adafruit_tinyusb_arduino.

timonsku avatar timonsku commented on August 11, 2024

Awesome! I wanted to make a more elaborate example with the Circuit Playground Express unless there are already plans for something like that?

from adafruit_tinyusb_arduino.

timonsku avatar timonsku commented on August 11, 2024

That's helpful, thank you!
My web frontend skills are a bit rusty but I should be able to make something nice.
Do I understand correctly that with webusb you just send buffers back and forth like with raw hid?
That serial.js doesn't look like its doing anything that would be specific to classical UART.

from adafruit_tinyusb_arduino.

hathach avatar hathach commented on August 11, 2024

@PTS93 webUSB specs actually doesn't say that, it is more like an optional extension. However, this Arduino library did implement the webusb as vendor class driver, and indeed as an subclass of Stream much like Serial for user convenience.

serial.js is only used to discover which interface that is 0xff and their endpoint number. As well as send the 0x22 connect/disconnect event. These aren't part of webusb neither, it is purely part of the this library specific implementation of webusb as stream. Hope that help to clear something up.

from adafruit_tinyusb_arduino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.