User Tools

Site Tools


using_a_breakout_button

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
using_a_breakout_button [2026/07/15 19:54] – [The Code] walkeradminusing_a_breakout_button [2026/07/15 20:02] (current) walkeradmin
Line 84: Line 84:
     if button.value() == 0:   # Button pressed (LOW)     if button.value() == 0:   # Button pressed (LOW)
         print("Button pressed — stopping program.")         print("Button pressed — stopping program.")
 +        all_off()
         break                 # Exit the loop and end main.py         break                 # Exit the loop and end main.py
 ####################### CHECK BREAKOUT BUTTON ########################## ####################### CHECK BREAKOUT BUTTON ##########################
using_a_breakout_button.1784145279.txt.gz · Last modified: by walkeradmin