Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- while True:
- with open("/sys/class/gpio/gpio67/value",'r') as f:
- a = f.readline().strip()
- if(a == '0'):
- print('button pushed.')
- time.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement