ESP32 Web Server - Async Micropython Tutorial

Опубликовано: 03 Ноябрь 2024
на канале: Bhavesh Kakwani
13,356
319

Learn how to use the Microdot library to run an asynchronous web server on your ESP32, in Micropython!
We dive into advanced usage of uasyncio and async/await so the ESP32 can display complex Neopixel animations while still serving web requests with high performance.

Written article version of this tutorial:
https://bhave.sh/micropython-microdot

Starter files:
main.py: https://github.com/bhavesh-k/micropyt...
boot.py: https://github.com/bhavesh-k/micropyt...

Final main.py (no peeking!):
https://github.com/bhavesh-k/micropyt...

Software:
Microdot library source files: https://github.com/miguelgrinberg/mic...
Thonny IDE: https://thonny.org/
Micropython WebREPL repository: https://github.com/micropython/webrepl
WebREPL setup instructions: https://docs.micropython.org/en/lates...

More awesome MicroPython tutorials: https://bhave.sh
Twitter:   / beyond_sol  

Banner design and video editing by Natalie Plociennik: https://natalie.gallery

0:00 Intro
0:50 Installing Microdot
2:28 Summary of Neopixel code
4:18 'Hello world' web server
9:19 RGB web API
13:50 HSV web API
17:40 Async web & LED animation
31:32 Control from iOS
32:33 Control from Android
33:00 Outro