Skip to content

Commit a7c7730

Browse files
committed
Content revision
1 parent becdf6c commit a7c7730

File tree

9 files changed

+19
-34
lines changed

9 files changed

+19
-34
lines changed

Diff for: content/micropython/01.basics/01.overview/overview.md

+5-10
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,20 @@ title: Overview
33
description: An introduction to Arduino and MicroPython
44
author: Francesca Sanfilippo
55
micropython_type: basics
6-
next_article: "/micropython/basics/board-installation"
7-
previous_article: "/micropython"
86
---
97

108
MicroPython is an implementation of the Python programming language, and includes some of the standard Python libraries. It is designed to run on microcontrollers with constrained environments.
119

12-
In this sequence of guides, you will amongst other things, learn how to:
10+
In this sequence of guides, you will among other things, learn how to:
1311
- Install MicroPython on your Arduino board,
14-
- Install the suggested editor (Arduino Labs for MicroPython),
12+
- Install an editor with support for MicroPython,
1513
- How to make basic scripts that can for example blink an LED, read an analog pin and print things to the terminal (REPL).
1614

1715
You do not need any prior knowledge in either programming with Arduino or MicroPython, but it is recommended to know the basics of Python.
1816

1917
What you need to do it is have a Compatible Board and a Code Editor. You can choose between two alternatives:
20-
- Arduino Lab for MicroPython: an experimental editor from Arduino, designed for simpler projects.
21-
- OpenMV: an editor for more complex projects, such as computer vision.
22-
23-
Check the pages of Compatibles Board and Code Editor to go on.
18+
- **Arduino Lab for MicroPython:** an experimental editor from Arduino, designed for simpler projects.
19+
- **OpenMV:** an editor for more complex projects, such as computer vision.
2420

2521
## Python vs C/C++.
2622

@@ -31,5 +27,4 @@ There's a big difference between how we program an Arduino board with the Arduin
3127

3228
## Python vs MicroPython
3329

34-
MicroPython was created to work under constrained conditions, like a small environment. The main difference between Python and MicroPython is that MicroPython does not have the full standard Python language, it is only a subset of it.
35-
30+
MicroPython was created to work under constrained conditions, like a small environment. The main difference between Python and MicroPython is that MicroPython does not have the full standard Python language, it is only a subset of it.

Diff for: content/micropython/01.basics/02.board-installation/board-installation.md

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ author: Francesca Sanfilippo, Karl Söderby & Jacob Hylén
55
micropython_type: basics
66
featured: micropython
77
hero_image: "./hero-banner.png"
8-
next_article: "/micropython/basics/overview"
9-
previous_article: "/micropython/basics/code-editors"
108
---
119

1210
So what do you need to start your first project with MicroPython and Arduino? First, you will need a compatible board. In this page, you will find the compatible boards, with instructions on how to install them.
Loading
Loading

Diff for: content/micropython/01.basics/03.code-editors/code-editors.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,26 @@ author: Francesca Sanfilippo & Karl Söderby
55
micropython_type: basics
66
featured: micropython
77
hero_image: "./hero-banner.png"
8-
next_article: "/micropython/basics/micro-python-basics"
9-
previous_article: "/micropython/basics/board-installation"
108
---
119

1210
To write and load scripts to your board, you will also need a Code Editor. In this page, you will find two alternatives:
13-
- Arduino Lab for MicroPython: an experimental editor from Arduino, designed for simpler projects.
14-
- OpenMV: an editor for more complex projects, such as computer vision.
11+
- **Arduino Lab for MicroPython:** an experimental editor from Arduino, designed for simpler projects.
12+
- **OpenMV:** an editor for more complex projects, such as computer vision.
1513

1614
## Arduino Lab for MicroPython
1715

1816
Arduino Lab for MicroPython is a software that supports programming Arduino boards with MicroPython. Through the customized editor, we can install MicroPython, and upload scripts directly to the board. The editor is able to manage the files and you can see what is uploaded on the board and vice versa.
1917

20-
![Arduino Lab for MicroPython]()
18+
![Arduino Lab for MicroPython](assets/mpylabs-ss.png)
19+
20+
- [Download Arduino Lab for MicroPython](https://labs.arduino.cc/en/labs/micropython).
2121

2222
## OpenMV Editor
2323

2424
OpenMV is a platform that supports programming Arduino boards with MicroPython. Through the OpenMV editor, we can install MicroPython and upload scripts directly to the board. There's also a number of examples available directly in the editor.
2525

26-
You can download it from the [OpenMV downloads page]() for more detailed guide on how to install the editor.
26+
![OpenMV editor.](assets/openmv-ss.png)
27+
28+
- [Download OpenMV](https://openmv.io/pages/download).
2729

28-
***You can also check out the full list of examples in the [OpenMV's GitHub repository]().***
30+
***You can also check out the full list of examples in the [OpenMV's GitHub repository](https://github.com/openmv/openmv/tree/master/scripts/examples/10-Arduino-Boards).***
Loading

Diff for: content/micropython/01.basics/04.micropython-basics/micropython-basics.md

+3-7
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,19 @@ title: MicroPython Basics
33
description: An introduction to MicroPython
44
author: Francesca Sanfilippo & Karl Söderby
55
micropython_type: basics
6-
next_article: "/micropython/basics/digital-analog-pins"
7-
previous_article: "/micropython/basics/code-editors"
86
---
97

10-
As you read in the Overview, MicroPython is an implementation of Python. In this page, you will find some basic and intermediate MicroPython scripts that can be used by any Arduino board. This includes some very common concepts such as variables, loops, delays, prints and more.
8+
As you read in the Overview, MicroPython is an implementation of Python. In this page, you will find some basic and intermediate MicroPython scripts that can be used by any Arduino board. This includes some very common concepts such as variables, loops, delays, how to print and more.
119

1210
***There are some differences between MicroPython and Python, which mostly concern standard library and types, but also some language-level features.***
1311

14-
After you download Arduino Lab for MicroPython from the Arduino Labs page, click the file for your system, extract and run the application. The interface is similar to Arduino IDE.
12+
After you download [Arduino Lab for MicroPython](https://labs.arduino.cc/en/labs/micropython), click the file for your system, extract and run the application. The interface is similar to Arduino IDE.
1513

1614
First of all, we need to connect our board to the computer via USB.
1715

18-
![Connect the board via USB.]()
19-
2016
After connecting the board, click on the connect button, and select the port.
2117

22-
![Connect and select the port.]()
18+
![Connect and select the port.](assets/labs-connect.png)
2319

2420
Now that you have connected your board, let’s create a file that will contain the script that will run on your board. Click on New button to create your file. The editor automatically creates the main file in the board.
2521

Diff for: content/micropython/01.basics/05.digital-analog-pins/digital-analog-pins.md

+1-7
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: Digital and Analog Pins
33
description: Learn how to use digital and analog Pins with Micropython
44
author: Francesca Sanfilippo & Karl Söderby
55
micropython_type: basics
6-
next_article: "/micropython/basics/board-api"
7-
previous_article: "/micropython/basics/micropython-basics"
86
---
97

108
In this chapter we will learn about managing digital and analog pins.
@@ -13,7 +11,7 @@ All the compatibles boards have a series of pins, most of these pins work as a g
1311

1412
There are essentially two types of pins, analog and digital pins. Digital pins can be set to either HIGH (usually 5V or 3.3V) or LOW (0V). You can use that to e.g. read a button state or to toggle an LED.
1513

16-
***Important: unfortunately, the MicroPython implementation does not match the pinout of your board. This means, that if you want to use for example, digital pin (5), it might be digital pin (27) on one board, or digital pin (14) on another. Please visit the [Arduino MicroPython boards pin mapping article]().***
14+
***Important: unfortunately, the MicroPython implementation does not match the regular pinout of your board. This means, that if you want to use for example, digital pin (5), it might be digital pin (27) on one board, or digital pin (14) on another. Please visit the [Board API article](/micropython/basics/board-api) to see what the pin map for your board is.***
1715

1816
## Digital Pins
1917

@@ -56,10 +54,6 @@ while True:
5654
time.sleep(1)
5755
```
5856

59-
The result is:
60-
61-
![Onboard LED Blinking.]()
62-
6357
### Digital Read (Pull Up)
6458

6559
In this example we read a digital value from a digital pin, using the `PULL_UP` mode. Here, we declare the pin an input through the `Pin.IN` command.

Diff for: content/micropython/01.basics/06.board-api/board-api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ while (True):
977977

978978
![Portenta H7.](assets/portenta.png)
979979

980-
***Note that the [Portenta H7 Lite]() and [Portenta H7 Lite Connected]() boards are compatible with most examples listed here, as they are variations of the Portenta H7.***
980+
***Note that the [Portenta H7 Lite](/hardware/portenta-h7-lite) and [Portenta H7 Lite Connected](/hardware/portenta-h7-lite-connected) boards are compatible with most examples listed here, as they are variations of the Portenta H7.***
981981

982982
### GPIO Map
983983

0 commit comments

Comments
 (0)