arminha / lolin-d32-micropython-playground

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lolin-d32-micropython-playground

Hardware

The LOLIN D32 is an ESP32 board with Wifi and Bluetooth.

MicroPython

Tutorials

Reference

Serial Console with Python REPL

Use minicom

minicom -D /dev/ttyUSB0 minirc.dfl

Manage files in the board file system

Use ampy

# list files
ampy ls

# read files
ampy get FILENAME

# write files
ampy put FILENAME

Blinking LED

from machine import Pin

# GPIO 5 is the build-in LED
p = Pin(5, Pin.OUT)
p.value(0) # LED on
p.value(1) # LED off

Environment

Create a virtualenv with tools and dependencies

virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt

About


Languages

Language:Python 100.0%