Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Set correct Baud Rate for the board #395

Closed
liydu opened this issue Aug 22, 2017 · 4 comments
Closed

Set correct Baud Rate for the board #395

liydu opened this issue Aug 22, 2017 · 4 comments
Assignees

Comments

@liydu
Copy link

liydu commented Aug 22, 2017

Reproduced in v0.24.

For quite some Arduino boards (incl. DevKit), to display serial monitor information correctly, you have to set the Baud Rate to 115200. By default, the extension is set to 9600, which is much rare cases. Suggest to set the default Baud Rate to 115200 to reduce an error prone step.

@sffamily
Copy link
Contributor

increase the priority for this.

@pedzed
Copy link

pedzed commented Jan 12, 2018

I am not so happy with this change.

By default, the extension is set to 9600, which is much rare cases.

@liydu based on what do you make this conclusion? Every Arduino developer I have seen uses 9600. The Arduino documentation uses that value as well.

Can I set the baud rate in my .vscode/arduino.json file? Every now and then it gets reset to 115200 which is slowly becoming very frustrating.

@435vic
Copy link

435vic commented Feb 20, 2018

You can set the default baud rate in out/src/serialmonitor/serialMonitor.js. At the end there are some variables incluiding SerialMonitor.DEFAULT_BAUD_RATE.

The out folder is in the arduino extension folder.

@mirao
Copy link

mirao commented Jul 8, 2018

It would be great to override the setting in public arduino.json instead of changing default value in JS source file. Mainly because builtin-in Arduino examples use another baud rate (9600) than VScode extension by default.

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

No branches or pull requests

7 participants