Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how set baudrate? what default speed? #102

Open
selevo opened this issue Sep 12, 2023 · 3 comments
Open

how set baudrate? what default speed? #102

selevo opened this issue Sep 12, 2023 · 3 comments

Comments

@selevo
Copy link

selevo commented Sep 12, 2023

i not see it in code ((
thank's

@selevo selevo changed the title how set bouderate? what default speed? how set boudrate? what default speed? Sep 12, 2023
@selevo selevo changed the title how set boudrate? what default speed? how set baudrate? what default speed? Sep 12, 2023
@jpliew
Copy link
Contributor

jpliew commented Sep 13, 2023

The baud rate is set here

Serial.begin(9600);

The redefinition of the WebUSB to Serial here

https://github.com/webusb/arduino/blob/486b7e8274b8e39440d6c63719a31273fec60adb/demos/rgb/sketch/sketch.ino#L13C16-L13C28

is confusing that may be misunderstood as a regular Serial. Should have just let it be 'WebUSBSerial' instead.

@reillyeon
Copy link
Collaborator

Baud rate essentially does not matter for an emulated USB serial port like is created here, which is why there's nothing on the host side to set baud rate.

Now that the Web Serial API is available it is mostly unnecessary to use this library to create a custom USB endpoint for WebUSB.

@selevo
Copy link
Author

selevo commented Sep 13, 2023

Thank's!

About API Web Serial ....
It's not work on android brousers
but webusb - work
https://selevo.github.io/WebUsbSerialTerminal/

This allows you to use a smartphone as a display, mathematical apparatus and visualization tool for any devices that require a display, and the user can save on this and in DIY
developers can also use this option to save money. besides, most people have at least two smartphones collecting dust in their desk drawer 😀

I don’t understand well why speed is not important, where can I read more about this? After all, usually when the speed of the receiver and transmitter differ, I get Abracadabra instead of symbols

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants