May 2020
Intermediate to advanced
262 pages
6h 48m
English
The first microcontroller to support MicroPython was the Pyboard. It comes with a Micro SD slot for more memory, a 3-axis accelerometer, analog-to-digital converters, digital-to-analog converters, and four built-in LEDs (red, green, yellow, and blue).
The following is a photograph of the version of Pyboard made by the Chinese company, Sanmuchina. It comes with MicroPython already installed:

The Pyboard is an excellent tool for getting started with MicroPython. The following code turns each of Pyboard's built-in LEDs on and off:
import pybleds = [pyb.LED(i) for i in range(1,5)]n = 0while True: n = (n + 1) % 4 leds[n].toggle() pyb.delay(1000) ...
Read now
Unlock full access