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

Commit d528691

Browse files
authored
Add WeMos D1 board (microsoft#606)
* Add WeMos D1 board * Improve config setting descriptions * Improve descriptions for arduino.enableUSBDetection * update descriptions
1 parent 3d3744e commit d528691

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,22 @@ The following Visual Studio Code settings are available for the Arduino extensio
6262
"arduino.enableUSBDetection": true,
6363
"arduino.disableTestingOpen": false,
6464
"arduino.skipHeaderProvider": false,
65+
"arduino.additionalUrls": [
66+
"https://raw.githubusercontent.com/VSChina/azureiotdevkit_tools/master/package_azureboard_index.json",
67+
"http://arduino.esp8266.com/stable/package_esp8266com_index.json"
68+
]
6569
}
6670
```
6771
- `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/$user/Downloads/arduino-1.8.1` for Linux. (Requires a restart after change). The default value is automatically detected from your Arduino IDE installation path.
6872
- `arduino.commandPath` - Path to an executable (or script) relative to `arduino.path`. You 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, `bin/run-arduino.sh` for Linux."
69-
- `arduino.additionalUrls` - Additional URLs for 3rd party packages. You can have multiple URLs in one string with comma(,) as separator, or have a string array. The default value is empty.
73+
- `arduino.additionalUrls` - Additional Boards Manager Urls for 3rd party packages. You can have multiple URLs in one string with comma(,) as separator, or have a string array. The default value is empty.
7074
- `arduino.logLevel` - CLI output log level. Could be info or verbose. The default value is `"info"`.
71-
- `arduino.enableUSBDetection` - Enable/disable USB detection from the VSCode Arduino extension. The default value is `true`.
75+
- `arduino.enableUSBDetection` - Enable/disable USB detection from the VSCode Arduino extension. The default value is `true`. when plug in your device to your computer, will pop up a message "Detected board ****, Would you like to switch to this board type", after click "yes" button, will automatically detect on which serial port (COM) is connected an usb device. if your device does not support this feature, please provide us with the pid/vid of device, the code format is defined in misc/usbmapping.json.
76+
> To learn more about how to list the vid/pid, use this tools https://github.com/EmergingTechnologyAdvisors/node-serialport
77+
```bash
78+
npm install -g serialport
79+
serialport-list -f jsonline
80+
```
7281
- `arduino.disableTestingOpen` - Disable/enable auto sending a test message to serial port for checking open status. The default value is `false` (a test message will be sent).
7382
- `arduino.skipHeaderProvider` - Enable/disable the extension providing completion items for headers. The functionality is included in newer versions of the C++ extension. The default value is `false`.
7483

misc/usbmapping.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@
112112
"package": "esp8266",
113113
"architecture": "esp8266",
114114
"id": "thingdev"
115+
},
116+
{
117+
"vid": "1a86",
118+
"pid": "7523",
119+
"name": "WeMos D1",
120+
"package": "esp8266",
121+
"architecture": "esp8266",
122+
"id": "d1"
115123
}
116124
]
117125
},

0 commit comments

Comments
 (0)