Closed shepherd007 closed 5 years ago
@shepherd007 this WebUSB demo only requires two endpoints.
The CDC is actually inherited from Arduino, which is what this WebUSB sketch demo depending on. Due to the Arduino Leonardo's bootloading nature that requires a CDC serial to exist for triggering of the bootloader.
It is possible to only have 2 endpoints if you can port this demo to LUFA or you remove most of the core CDC feature from Arduino.
Hope this answer your question.
Cheers JP
@jpliew's answer is correct.
Thank you; that makes a sense.
I am trying to understand the demo - from what I can see there are two devices created - CDC (with 2 endpoints) and WebUSB (also with two endpoints). There is a comment saying that:
Does it mean we need to have twice more endpoints than for native (i.e. C++ Windows) serial comm implementation? Can number of endpoints be limited to minimum (which is 2 in the demo)?