|
2 | 2 |
|
3 | 3 | 1. First [download and install Visual Studio Code](https://code.visualstudio.com/). |
4 | 4 | 2. Install the [Pymakr VSCode Extension](https://marketplace.visualstudio.com/items?itemName=pycom.Pymakr) |
5 | | - |
6 | | - _(We're installing the preview, but once the project reaches "stable" we'll, be using the regular extension.)_ |
7 | 5 |
|
8 | | - <img src="./media/readme/install-pymakr.gif" /> |
| 6 | + _(We're installing the preview, but once the project reaches "stable" we'll, be using the regular extension.)_ |
| 7 | + |
| 8 | + <img src="./media/readme/install-pymakr.gif" /> |
9 | 9 |
|
10 | 10 | 3. That's it! You've installed the Pymakr Extension for VSCode |
11 | 11 |
|
@@ -35,27 +35,30 @@ Once the project is ready to run, it needs to be uploaded to a device. |
35 | 35 |
|
36 | 36 | To speed up development, you can put a project in `development mode`. |
37 | 37 |
|
38 | | -In development mode, Pymakr automatically propagates file changes in and restarts the main script. |
| 38 | +In development mode, Pymakr automatically propagates local file changes to connected devices and then restarts the main script. |
39 | 39 |
|
40 | 40 | Dev mode can be configured in `pymakr.json` |
| 41 | + |
41 | 42 | ```json |
42 | 43 | { |
43 | | - "onUpdate": "restartScript" | "softRestartDevice" | "hardRestartDevice" |
| 44 | + "onUpdate": "restartScript" | "softRestartDevice" | "hardRestartDevice" |
44 | 45 | } |
45 | 46 | ``` |
46 | 47 |
|
47 | 48 | **onUpdate:** Action to be called once file changes have been propagated. |
| 49 | + |
48 | 50 | - **restartScript** Clears the `main.py` module as well as any changed modules. Then imports `boot.py` and `main.py`. |
49 | 51 | - **softRestartDevice** Performs <kbd>ctrl + d</kbd> |
50 | 52 | - **hardRestartDevice** Performs `machine.reset()` |
51 | 53 |
|
52 | 54 | #### NOTE |
53 | | -*`machine.sleep` and `machine.deepsleep` do not work in development since they stop the USB connection.* |
| 55 | + |
| 56 | +_`machine.sleep` and `machine.deepsleep` do not work in development since they stop the USB connection._ |
54 | 57 |
|
55 | 58 | --- |
56 | 59 |
|
57 | 60 | ## Hint: Organizing your setup |
58 | 61 |
|
59 | 62 | Having to switch between different tabs can be cumbersome. To solve this, you can drag your devices and projects to the file explorer view. |
60 | 63 |
|
61 | | - |
| 64 | + |
0 commit comments