filmov
tv
Learn MicroPython #4 - Interrupts (event-driven code)

Показать описание
Full code available on Github!
In the last video, we made a program that would turn an LED on whenever a button is pressed. However, we found that as long as the program is running, the Python REPL console is blocked from starting. At the end of this video, we will have a program that does the same thing with the LED and button, but will also allow the REPL to start. This will be accomplished by using a feature of MicroPython called "interrupts" that allows us to build the program in an event-driven way. Hope you have fun with this one!
**************************************************
We use FREE open source software with the following machines:
(ALL open source software is free so YOU can try it too) **************************************************
CNC ROUTER / MILLING MACHINE
(As an Amazon Associate I earn from qualifying purchases.)
**************************************************
FREE VIDEO DEMOS:
Laser Cutting TIPS & TRICKS
Vinyl Cutting TIPS & TRICKS
Wood Lathing TIPS & TRICKS
Milling / CNC Router TIPS & TRICKS
Metal Lathing TIPS & TRICKS
**************************************************
We have entire playlists on learning open source software so have fun learning! The solution is right around the corner... InventBoxTutorials.
Great tutorials. Free software. Open to the world.
In the last video, we made a program that would turn an LED on whenever a button is pressed. However, we found that as long as the program is running, the Python REPL console is blocked from starting. At the end of this video, we will have a program that does the same thing with the LED and button, but will also allow the REPL to start. This will be accomplished by using a feature of MicroPython called "interrupts" that allows us to build the program in an event-driven way. Hope you have fun with this one!
**************************************************
We use FREE open source software with the following machines:
(ALL open source software is free so YOU can try it too) **************************************************
CNC ROUTER / MILLING MACHINE
(As an Amazon Associate I earn from qualifying purchases.)
**************************************************
FREE VIDEO DEMOS:
Laser Cutting TIPS & TRICKS
Vinyl Cutting TIPS & TRICKS
Wood Lathing TIPS & TRICKS
Milling / CNC Router TIPS & TRICKS
Metal Lathing TIPS & TRICKS
**************************************************
We have entire playlists on learning open source software so have fun learning! The solution is right around the corner... InventBoxTutorials.
Great tutorials. Free software. Open to the world.
Комментарии