Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

How to Use Asyncio in MicroPython - Raspberry Pi Pico

Digi-Key via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to implement cooperative multitasking in MicroPython using the uasyncio library on a Raspberry Pi Pico. Explore the differences between cooperative and preemptive multitasking, and discover how to create multiple tasks within a single program. Follow along as the tutorial demonstrates reading button presses and blinking an LED simultaneously, as well as using a queue for inter-task communication. Gain insights into coroutines, the async/await keywords, and the event loop structure. By the end of this 25-minute video, you'll have a solid understanding of asyncio implementation in MicroPython and be able to optimize processor utilization in your own projects.

Syllabus

Intro
concurrency and preemptive multitasking
cooperative multitasking
Asyncio
Demo
Button
Queue

Taught by

Digi-Key

Reviews

Start your review of How to Use Asyncio in MicroPython - Raspberry Pi Pico

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.