Commit 452ad28d authored by santiago duque's avatar santiago duque

added second button and logic to stop events as a test

parent 93f62aa3
......@@ -143,10 +143,12 @@ def resetBtn(index):
btn1 = Button(21)
btn1.when_pressed = lambda: btn_pressed(0)
btn1.when_held = lambda: print('keeps pressing')
#btn1.when_released = lambda: resetBtn(0)
btn2 = Button(13)
btn2.when_pressed = lambda: btn_pressed(1)
btn1.when_held = None
#btn2.when_released = lambda: resetBtn(1)
btn_array = [btn1, btn2]
......
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