Learn MicroPython #4 - Interrupts (event-driven code)
Full code available on Github! https://github.com/invent-box/Learn-MicroPython 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) ************************************************** LASER CUTTER ENGRAVER: https://amzn.to/2IjMAeK extra features (red dot laser & wheels): https://amzn.to/3cmH341 air assist (for better cutting): https://amzn.to/38uIvjh VINYL CUTTER: https://amzn.to/39AGYs8 WOOD LATHE: https://amzn.to/33oQVY1 tool set: https://amzn.to/2w7OWv0 caliper: https://amzn.to/3b3eisx CNC ROUTER / MILLING MACHINE cnc router: https://amzn.to/336ofTu mini milling machine: https://amzn.to/34HTEwn 2 flute end mill set: https://amzn.to/2xlbj0b MINI METAL LATHE: https://amzn.to/2SpLSm2 MICROPHONE/HEADSET FOR MAKING VIDEOS: https://amzn.to/2wvwUCY (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.
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.