Commit 6fb41640 authored by santiago duque's avatar santiago duque

added second button and logic to stop events as a test

parent 2dcec97c
import sys from signal import pause
import os
from os.path import isfile, join from os.path import isfile, join
from gpiozero import Button from gpiozero import Button
...@@ -38,7 +37,5 @@ btn2.when_pressed = lambda: btn_pressed(1) ...@@ -38,7 +37,5 @@ btn2.when_pressed = lambda: btn_pressed(1)
btn_array = [btn1, btn2] btn_array = [btn1, btn2]
run = True pause()
while run:
print ('running')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment