-
-
Notifications
You must be signed in to change notification settings - Fork 459
[PXCT-200] Online Editor #2283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
karlsoderby
merged 3 commits into
content/micropython/micropython-revamp
from
karlsoderby/online-editor
Nov 20, 2024
Merged
[PXCT-200] Online Editor #2283
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file added
BIN
+235 KB
...ropython/03.micropython/02.enviroment/00.online-editor/assets/connect-board.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.03 MB
...n/03.micropython/02.enviroment/00.online-editor/assets/online-editor-access.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions
42
content/micropython/03.micropython/02.enviroment/00.online-editor/online-editor.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title: 'Arduino Lab for MicroPython (online)' | ||
description: 'The Arduino Lab for MicroPython is an online code editor for writing and loading MicroPython scripts.' | ||
author: 'Karl Söderby' | ||
--- | ||
|
||
The [Arduino Lab for MicroPython]() is an online code editor that allows you to load MicroPython scripts to your Arduino board. This editor is part of the [Arduino Cloud](), and is free to use for everyone. | ||
|
||
In this tutorial, we will take a look at how we can access it, and test out it out by writing a simple script. | ||
|
||
***Note that this tutorial does not go in depth on how the Arduino Lab for MicroPython work. For more details, you can visit the [guide to the Arduino Lab for MicroPython]().*** | ||
karlsoderby marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## Requirements | ||
|
||
- **Google Chrome** - this is currently the only supported browser. | ||
- [Arduino Cloud account registered]() | ||
- [A MicroPython compatible board]() | ||
|
||
## Setting Up | ||
|
||
***To follow these steps, you will need to have MicroPython installed on your board. Haven't done this yet? Don't worry, check out the [Installing MicroPython]() guide.*** | ||
|
||
Setting up the online environment is quick and easy. Follow the steps below to achieve it: | ||
|
||
1. Go to [Arduino Cloud](https://app.arduino.cc/) and log in / create an account. | ||
2. Navigate to [lab-micropython.arduino.cc](https://lab-micropython.arduino.cc/). This is accessible through the cloud interface, under **Resources > Online Lab for MicroPython**. | ||
 | ||
3. Click on the **"Connect"** button, and select our board from the list. | ||
 | ||
4. With the board connected, in the text area, copy and paste the following: | ||
```python | ||
print("Hello World!") | ||
``` | ||
|
||
We should now see `Hello World!` printed in the REPL. | ||
|
||
## Troubleshooting | ||
|
||
- If the "RUN" button is faded out, it means the board is not connected. Click the "Connect" button to get a list of available boards connected. | ||
- Make sure MicroPython is installed on your board. | ||
- If you have recently installed MicroPython on your board, try resetting the board by pressing the reset button (once), or disconnect & reconnect the USB cable. | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.