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.
-[Adafruit CLUE Examples on GitHub](https://github.com/adafruit/Adafruit_CircuitPython_CLUE/tree/master/examples)
155
+
156
+
### Keyboard Shortcuts
157
+
- Push Button: <kbd>A</kbd> for Button A, <kbd>B</kbd> for Button B, <kbd>C</kbd> for Buttons A & B
158
+
- Refresh the simulator: <kbd>Shift</kbd> + <kbd>R</kbd>
159
+
- Run the simulator: <kbd>Shift</kbd> + <kbd>F</kbd>
160
+
161
+
## How to enable preview flag
162
+
Currently, we have our Adafruit CLUE simulator hidden behind a preview flag and we want you to try it out!
163
+
### I. Open settings
164
+
For Windows and Linux, you can use <kbd>Ctrl</kbd> + <kbd>,</kbd> or use `File -> Preferences -> Settings` in the top menu to navigate to settings. For Mac, you can use <kbd>Cmd</kbd> + <kbd>,</kbd> or use `Code -> Preferences -> Settings`.
To use Device Simulator Express, install the extension from the marketplace and reload VS Code.
119
177
120
-
To access many of the commands, you need to open the command palette. This can be done with `CTRL + SHIFT + P` for Windows and Linux / `CMD + SHIFT + P` for Mac. It can also be accessed from the toolbar by going to `View -> Command Palette`.
178
+
To access many of the commands, you need to open the command palette. This can be done with <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> for Windows and Linux / <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> for Mac. It can also be accessed from the toolbar by going to `View -> Command Palette`.
121
179
122
180
### I. Take a look at the "Device Simulator Express: Getting Started" Command.
123
-
1. Type in `"Device Simulator Express: Getting Started"` in the command palette (`CTRL + SHIFT + P` / `CMD + SHIFT + P` to open the command palette).
181
+
1. Type in `"Device Simulator Express: Getting Started"` in the command palette (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> / <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> to open the command palette).
124
182
2. Choose the the device you want to play with from the dropdown.
125
183
3. Read, copy and learn some of the things you can do with the simulator!
### II. Start with the "Device Simulator Express: New File" Command.
130
-
1. Type in `"Device Simulator Express: New File"` in the command palette (`CTRL + SHIFT + P` / `CMD + SHIFT + P` to open the command palette).
188
+
1. Type in `"Device Simulator Express: New File"` in the command palette (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> / <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> to open the command palette).
131
189
2. Select the device you want to use.
132
190
3. Name and save your file somewhere, and we’re good to go!
133
191
4. Start with some examples: you can find examples files and tutorials inside the comments at the top of the file.
@@ -176,7 +234,7 @@ Before deploying the Python code to your CPX device, you need to format your dev
176
234
177
235
### Commands
178
236
179
-
Device Simulator Express provides several commands in the Command Palette (`F1` or `CTRL + SHIFT + P` / `CMD + SHIFT + P` for Mac OS) for working with \*.py files:
237
+
Device Simulator Express provides several commands in the Command Palette (<kbd>F1</kbd> or <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> / <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> for Mac OS) for working with \*.py files:
180
238
181
239
-`Device Simulator Express: Getting Started`: Opens a page in VS Code that helps users get started with the extension. Here, users can browse through code that they can use to play with the simulators.
182
240
-`Device Simulator Express: Run Simulator`: Runs Python code on the simulator.
@@ -229,9 +287,9 @@ A `ThirdPartyNotices.txt` file is provided in the extension's source code listin
229
287
230
288
- The first time you install the extension, you'll need to execute the `run` command at least once in order to access auto-completion.
231
289
- While running a code file, if you get an error saying it can't find the file, make sure you've clicked on a valid Python code file before running it.
232
-
- To open the output panel again after closing it go to VS Code menu: `View->Output`.
290
+
- To open the output panel again after closing it go to VS Code menu: `View -> Output`.
233
291
- If you try to deploy to the CPX while it's plugged in but you still get an error saying it cannot find the board, make sure your device is formatted correctly and that its name matches `CIRCUITPY`.
234
-
- If you can't get the Simulator communication working while debugging, try to open your `Settings` and check the port used under `"Device Simulator Express: [<device_name>] Debugger Server Port"`. You can either change it (usually ports above 5000 should work) or try to free it, then start debugging again.
292
+
- If you can't get the Simulator communication working while debugging, try to open your `Settings` and check the port used under `"Device Simulator Express: Debugger Server Port"`. You can either change it (usually ports above 5000 should work) or try to free it, then start debugging again.
235
293
- When you are using the serial monitor, if you get some unusual error messages, unplug the device and reload the VS Code windows.
0 commit comments