Skip to content

Commit 0d307ec

Browse files
committed
review code editor
1 parent 36f27ae commit 0d307ec

File tree

1 file changed

+30
-11
lines changed
  • content/micropython/03.micropython/02.environment/01.code-editor

1 file changed

+30
-11
lines changed

content/micropython/03.micropython/02.environment/01.code-editor/code-editor.md

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
---
2-
featured: micropython-101
3-
title: '2. Micropython Environment - Editor'
2+
title: 'Code Editor'
43
description: 'Learn the basics for loops on MicroPython.'
54
author: 'Pedro Lima'
6-
hero_image: "./hero-banner.png"
5+
tags: [MicroPython, Arduino Lab for MicroPython]
76
---
87

9-
Arduino Labs for MicroPython includes a user-friendly code editor that helps us write, format, and run MicroPython code with ease. In this article, we’ll explore how the code editor works, key formatting rules for MicroPython, and some useful tips to keep our code clean and error-free.
8+
Arduino Lab for MicroPython includes a user-friendly code editor that helps us write, format, and run MicroPython code with ease. In this article, we’ll explore how the code editor works, key formatting rules for MicroPython, and some useful tips to keep our code clean and error-free.
109

11-
## The Code Editor in Arduino Labs for MicroPython
10+
## Requirements
11+
12+
- [Arduino Lab for MicroPython]()
13+
- **MicroPython compatible board** (not required for using the editor, but for running any code).
14+
15+
***Note that the Arduino Lab for MicroPython is now also available online, as part of the Arduino Cloud platform. You will find it here: [Arduino Cloud - Arduino Lab for MicroPython]().***
16+
17+
## Arduino Labs for MicroPython
1218

1319
The code editor in Arduino Labs is designed to streamline our coding experience, providing tools to:
1420

@@ -18,6 +24,24 @@ The code editor in Arduino Labs is designed to streamline our coding experience,
1824

1925
As we get familiar with the editor, remember that MicroPython has a few syntax rules that differ from other languages we might know.
2026

27+
### Overview
28+
29+
Text / bullet points here summarizing e.g. buttons and icons in the editor.
30+
31+
![Overview of the code editor.]()
32+
33+
### Files
34+
35+
Text / bullet points here for how to manage files (and point to the file system tutorial)
36+
37+
![Managing files in Arduino Lab for MicroPython]()
38+
39+
### REPL
40+
41+
Text / bullet points here for where the REPL is and how it works (and point to the REPL tutorial)
42+
43+
![The REPL.]()
44+
2145
## Indentation
2246

2347
In MicroPython, indentation (using spaces or tabs) is essential for defining the structure of our code. Unlike many other languages, MicroPython relies on indentation instead of symbols like `{ }` to define code blocks.
@@ -104,9 +128,4 @@ Here are a few quick tips to make the most of our time in the code editor:
104128
- **Use Descriptive Names**: Name variables and functions clearly to make the code readable.
105129
- **Keep It Modular**: Split complex code into functions for easier maintenance.
106130
- **Comment as We Go**: Leave helpful comments explaining why we wrote certain sections of code.
107-
- **Indent Carefully**: Pay attention to indentation for clean, error-free code.
108-
109-
## Try It Out
110-
111-
- **Experiment with Indentation**: Try writing a few functions with nested loops or conditionals to get comfortable with indentation.
112-
- **Add Comments**: Document a small code snippet with comments explaining each part.
131+
- **Indent Carefully**: Pay attention to indentation for clean, error-free code.

0 commit comments

Comments
 (0)