You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 23, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+10-12Lines changed: 10 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,19 +43,15 @@ You will be prompted to install the Python dependencies during the first use.
43
43
-_**[Python 3.7.4](https://www.python.org/downloads/)**_: Make sure you've added python and pip to your PATH in your environment variables. (1)
44
44
-_**[Python VS Code extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python)**_: This will be installed automatically from the marketplace when you install Device Simulator Express.
45
45
46
-
The following dependecies can be installed for you by the extension by clicking yes when you are prompted to (**except**`pywin32` which is needed only on Windows platform). (2)
46
+
- Python Modules for Simulation
47
+
-**Note:** On extension activation, you will be prompted with a popup message asking if you want the modules to be automatically installed for you. The following Python modules should be downloaded when you select "yes" on the prompt message. **If modules are not installed correctly, please use the "pip install" commands listed below.**
48
+
- Playsound : `pip install playsound`
49
+
- Pywin32 : `pip install pywin32`
50
+
- On Windows, you need to use the above command in the console to manually install pywin32.
install by typing the following commands in a console: `pip install playsound`
50
-
51
-
-_**Pywin 32**_
52
-
install by typing the following commands in a console (only for Windows computers, you must run it manually): `pip install pywin32`
53
-
-_**Python-Socketio**_
54
-
install by typing the following commands in a console: `pip install python-socketio`
55
-
-_**Requests**_
56
-
install by typing the following commands in a console: `pip install requests`
57
-
-_**Application Insights**_
58
-
install by typing the following commands in a console: `pip install applicationinsights`
59
55
60
56
## Useful Links
61
57
- Tutorials and Example Code for Adafruit CPX:
@@ -102,6 +98,8 @@ Before deploying the python code to your CPX device, you need to format your dev
102
98
2. Download the lastest version of the cpx library (link: https://learn.adafruit.com/welcome-to-circuitpython/circuitpython-libraries).
103
99
**_Note:_** Make sure you name your file `main.py` or `code.py`: the device automatically runs the first file that is likely named. This is the convention for CircuitPython ([source](https://learn.adafruit.com/welcome-to-circuitpython/creating-and-editing-code#naming-your-program-file-7-32)).
104
100
101
+
Then, if you are on Windows, you will also need to install the Python Pywin32 package. Use the following command in the console: `pip install pywin32`
102
+
105
103
<img alt="Deploy to Device" src=https://raw.githubusercontent.com/microsoft/vscode-python-devicesimulator/dev/assets/readmeFiles/deployToBoard.png>
106
104
107
105
### 5. Use the Serial Monitor for your Adafruit CPX device (available on Windows and Mac only)
Copy file name to clipboardExpand all lines: docs/developers-setup.md
+11-17Lines changed: 11 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,24 +13,18 @@
13
13
-**NOTE :** Make sure pip is added to your environment variables as well
14
14
(for example it could be found at : `c:\users\<...>\appdata\local\programs\python\python37\lib\site-packages\pip`)
15
15
- Run in a console `python -m pip install --upgrade pip`
16
-
16
+
17
17
* Python Modules
18
-
19
-
-**Note:** On extension activation you will be prompted a popup asking if you want the modules to be automatically installed for you, **except**`pywin32` which is needed only on Windows platform.
20
-
- Playsound
21
-
- Run the command in a console : `pip install playsound`
22
-
- Pytest
23
-
- Run the command in a console : `pip install pytest`
24
-
- Pywin32
25
-
-**Note:** This is only needed for Windows computers. You must install it manually with the above command!
26
-
- Run the command in a console : `pip install pywin32`
27
-
- Python-Socketio
28
-
- Run the command in a console : `pip install python-socketio`
29
-
- Requests
30
-
- Run the command in a console : `pip install requests`
31
-
- Application Insights
32
-
- Run the command in a console : `pip install applicationinsights`
33
-
18
+
-**Note:** On extension activation, you will be prompted with a popup asking if you want the modules to be automatically installed for you. The following python modules should be downloaded when you select "yes" on the prompt message.
19
+
- pywin32 **(on Windows only)**
20
+
- On Windows, you need to use the following command in the console to manually install pywin32: `pip install pywin32`
21
+
-*playsound*
22
+
-*pytest*
23
+
-*python-socketio*
24
+
-*requests*
25
+
-*applicationinsights*
26
+
27
+
*italics*: used in simulation mode only
34
28
* VS Code
35
29
36
30
* Python extension for VS Code (download from VS Code market place)
Copy file name to clipboardExpand all lines: docs/install.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,15 +22,18 @@ _Note: You need to install all the dependencies in order to use the extension._
22
22
_(Note: the easiest way to do it might be when you install Python, you can select the "Add to PATH" option directly. Otherwise you can search how to insert it manually, but make sure that when you type `python` (or `python3.7`) in a terminal, the command is recognized.)_
23
23
-[Python VS Code extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
24
24
-**Note:** This extension is installed automatically from the marketplace when you install our extension
25
-
- Python Modules
26
-
-**Note:** On extension activation a popup will be prompted asking if you want the modules to be automatically installed for you, **except**`pywin32` which is needed only on Windows platform.
27
-
- Playsound : `pip install playsound`
28
-
- Pywin32 : `pip install pywin32`
29
-
-**Note:** This is only needed for Windows computers. You must install it manually with the above command!
-**Note:** On extension activation, you will be prompted with a popup asking if you want the modules to be automatically installed for you. The following python modules should be downloaded when you select "yes" on the prompt message. **If modules are not installed correctly, please use the "pip install" commands listed below.**
28
+
- pywin32 **(on Windows only)**: `pip install pywin32`
29
+
- On Windows, you need to use the above command in the console to manually install pywin32.
"error.debuggerServerInitFailed": "Warning : The Debugger Server cannot be opened. Please try to free the port {0} if it's already in use or select another one in your Settings 'Device Simulator Express: Debugger Server Port' and start another debug session.\n You can still debug your code but you won't be able to use the Simulator.",
13
14
"error.debuggingSessionInProgress": "[ERROR] A debugging session is currently in progress, please stop it before running your code. \n",
14
15
"error.incorrectFileNameForDevice": "[ERROR] Can\\'t deploy to your Circuit Playground Express device, please rename your file to \"code.py\" or \"main.py\". \n",
0 commit comments