Skip to content

Commit 7e6c888

Browse files
authored
Merge pull request #2283 from arduino/karlsoderby/online-editor
[PXCT-200] Online Editor
2 parents 1073ce0 + 05c6333 commit 7e6c888

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: 'Arduino Lab for MicroPython (online)'
3+
description: 'The Arduino Lab for MicroPython is an online code editor for writing and loading MicroPython scripts.'
4+
author: 'Karl Söderby'
5+
---
6+
7+
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.
8+
9+
In this tutorial, we will take a look at how we can access it, and test it out by writing a simple script.
10+
11+
***Note that this tutorial does not go in depth on how the Arduino Lab for MicroPython works. For more details, you can visit the [guide to the Arduino Lab for MicroPython]().***
12+
13+
## Requirements
14+
15+
- **Google Chrome** - this is currently the only supported browser.
16+
- [Arduino Cloud account registered]()
17+
- [A MicroPython compatible board]()
18+
19+
## Setting Up
20+
21+
***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.***
22+
23+
Setting up the online environment is quick and easy. Follow the steps below to achieve it:
24+
25+
1. Go to [Arduino Cloud](https://app.arduino.cc/) and log in / create an account.
26+
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**.
27+
![Navigate to the editor.](assets/online-editor-access.png)
28+
3. Click on the **"Connect"** button, and select our board from the list.
29+
![Select your board](assets/connect-board.png)
30+
4. With the board connected, in the text area, copy and paste the following:
31+
```python
32+
print("Hello World!")
33+
```
34+
35+
We should now see `Hello World!` printed in the REPL.
36+
37+
## Troubleshooting
38+
39+
- 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.
40+
- Make sure MicroPython is installed on your board.
41+
- 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.
42+

0 commit comments

Comments
 (0)