flâneur — a map of the web's best reading

Interrupts RPi Pico MicroPython : React to events

upesy.com · 2,048 words · saved by 1 readers

In electronics, an interrupt is an urgent signal sent to a processor asking it to prioritize and perform a particular task immediately. This stops the program that the processor was previously executing. Interrupts can be caused by various events - such as external events and timers . They help to perform tasks that are not part of the main program and can be done simultaneously as the rest of the program is running. This is known as asynchronous execution. In practice, interrupts are generally used to: Execute a Python function with a specific code that can be automatically triggered when a button is pressed. Run functions at a specified interval, such as flashing an LED every 5 seconds. It is possible to write code to turn on an LED when a key is pressed without using interrupts. However, this technique has two significant disadvantages. The first problem is that the script must constantly check the value of the pin_button pin to determine if the button has been pressed. Doing anythi

Menu Expand Light mode Dark mode Auto light/dark mode Hide navigation sidebar Hide table of contents sidebar uPesy Products Toggle child pages in navigation Getting Started Toggle child pages in navigation uPesy RP2040 DevKit Your first steps with an ESP32 board uPesy ESP32 Wroom Low Power DevKit uPesy ESP32 Wrover DevKit uPesy Micro SD Card Reader Datasheets Toggle child pages in navigation ESP32 Boards Toggle child pages in navigation uPesy ESP32 Wroom DevKit uPesy ESP32 Wrover DevKit uPesy ESP32 Wroom Low Power DevKit uPesy RP2040 DevKit uPesy Protoboards MicroSD reader module ESP32 Toggle

Explore this link on the map →

saved by

related reading