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

Commit 9173ae6

Browse files
authored
change readme (#733)
* change readme * change readme * update description of commandPath * add a note
1 parent c4b5396 commit 9173ae6

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

README.md

+13-16
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,23 @@ This extension provides several commands in the Command Palette (<kbd>F1</kbd> o
5252
- **Arduino: Verify**: Build sketch.
5353

5454
## Options
55+
| Option | Description |
56+
| --- | --- |
57+
| `arduino.path` | Path to Arduino, you can use a custom version of Arduino by modifying this setting to include the full path. Example: `C:\\Program Files\\Arduino` for Windows, `/Applications` for Mac, `/home/<username>/Downloads/arduino-1.8.1` for Linux. (Requires a restart after change). The default value is automatically detected from your Arduino IDE installation path. |
58+
| `arduino.commandPath` | Path to an executable (or script) relative to `arduino.path`. The default value is `arduino_debug.exe` for windows,`Contents/MacOS/Arduino` for Mac and `arduino` for Linux, You also can use a custom launch script to run Arduino by modifying this setting. (Requires a restart after change) Example: `run-arduino.bat` for Windows, `Contents/MacOS/run-arduino.sh` for Mac and `bin/run-arduino.sh` for Linux. |
59+
| `arduino.additionalUrls` | Additional Boards Manager URLs for 3rd party packages. You can have multiple URLs in one string with a comma(`,`) as separator, or have a string array. The default value is empty. |
60+
| `arduino.logLevel` | CLI output log level. Could be info or verbose. The default value is `"info"`. |
61+
| `arduino.enableUSBDetection` | Enable/disable USB detection from the VSCode Arduino extension. The default value is `true`. When your device is plugged in to your computer, it will pop up a message "`Detected board ****, Would you like to switch to this board type`". After clicking the `Yes` button, it will automatically detect which serial port (COM) is connected a USB device. If your device does not support this feature, please provide us with the PID/VID of your device; the code format is defined in `misc/usbmapping.json`.To learn more about how to list the vid/pid, use the following tools: https://github.com/EmergingTechnologyAdvisors/node-serialport `npm install -g serialport` `serialport-list -f jsonline`|
62+
| `arduino.disableTestingOpen` | Enable/disable automatic sending of a test message to the serial port for checking the open status. The default value is `false` (a test message will be sent). |
63+
| `arduino.skipHeaderProvider` | Enable/disable the extension providing completion items for headers. This functionality is included in newer versions of the C++ extension. The default value is `false`.|
64+
| `arduino.defaultBaudRate` | Default baud rate for the serial port monitor. The default value is 115200. Supported values are 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 74880, 115200, 230400 and 250000 |
65+
5566
The following Visual Studio Code settings are available for the Arduino extension. These can be set in global user preferences <kbd>Ctrl</kbd> + <kbd>,</kbd> or workspace settings (`.vscode/settings.json`). The latter overrides the former.
5667

5768
```json
5869
{
5970
"arduino.path": "C:/Program Files (x86)/Arduino",
60-
"arduino.commandPath": "run-arduino.bat",
71+
"arduino.commandPath": "arduino_debug.exe",
6172
"arduino.logLevel": "info",
6273
"arduino.enableUSBDetection": true,
6374
"arduino.disableTestingOpen": false,
@@ -69,21 +80,7 @@ The following Visual Studio Code settings are available for the Arduino extensio
6980
"arduino.defaultBaudRate": 115200
7081
}
7182
```
72-
- `arduino.path` - Path to Arduino, you can use a custom version of Arduino by modifying this setting to include the full path. Example: `C:\\Program Files\\Arduino` for Windows, `/Applications` for Mac, `/home/<username>/Downloads/arduino-1.8.1` for Linux. (Requires a restart after change). The default value is automatically detected from your Arduino IDE installation path.
73-
- `arduino.commandPath` - Path to an executable (or script) relative to `arduino.path`. The default value is `arduino_debug.exe` for windows and `arduino` for ubuntu. You also can use a custom launch script to run Arduino by modifying this setting. (Requires a restart after change) Example: `run-arduino.bat` for Windows, `Contents/MacOS/run-arduino.sh` for Mac and `bin/run-arduino.sh` for Linux.
74-
- `arduino.additionalUrls` - Additional Boards Manager URLs for 3rd party packages. You can have multiple URLs in one string with a comma(`,`) as separator, or have a string array. The default value is empty.
75-
- `arduino.logLevel` - CLI output log level. Could be info or verbose. The default value is `"info"`.
76-
- `arduino.enableUSBDetection` - Enable/disable USB detection from the VSCode Arduino extension. The default value is `true`. When your device is plugged in to your computer, it will pop up a message "`Detected board ****, Would you like to switch to this board type`". After clicking the `Yes` button, it will automatically detect which serial port (COM) is connected a USB device. If your device does not support this feature, please provide us with the PID/VID of your device; the code format is defined in `misc/usbmapping.json`.
77-
> To learn more about how to list the vid/pid, use the following tools: https://github.com/EmergingTechnologyAdvisors/node-serialport
78-
79-
```bash
80-
npm install -g serialport
81-
serialport-list -f jsonline
82-
```
83-
84-
- `arduino.disableTestingOpen` - Enable/disable automatic sending of a test message to the serial port for checking the open status. The default value is `false` (a test message will be sent).
85-
- `arduino.skipHeaderProvider` - Enable/disable the extension providing completion items for headers. This functionality is included in newer versions of the C++ extension. The default value is `false`.
86-
- `arduino.defaultBaudRate` - Default baud rate for the serial port monitor. The default value is 115200. Supported values are 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 74880, 115200, 230400 and 250000.
83+
*Note:* You only need to set `arduino.path` in Visual Studio Code settings, other options are not required.
8784

8885
The following settings are as per sketch settings of the Arduino extension. You can find them in
8986
`.vscode/arduino.json` under the workspace.

0 commit comments

Comments
 (0)