Skip to content

Instantly share code, notes, and snippets.

@uktechreviews
Created August 9, 2017 07:23
Show Gist options
  • Save uktechreviews/ecc483750a052928177948f3df466f79 to your computer and use it in GitHub Desktop.
Save uktechreviews/ecc483750a052928177948f3df466f79 to your computer and use it in GitHub Desktop.
def check_button():
button_press = False
while button_press == False:
b1 = button1.value
b2 = button2.value
if b1 == True:
button_press = True
if b2 == True:
button_press = True
return b1,b2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment