Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- from gpiozero import Button
- from signal import pause
- import os
- def runboth():
- os.system("~/Desktop/script/script_a.sh")
- os.system("~/Desktop/script/script_b.sh")
- runboth_btn = Button(23, hold_time=2)
- runboth_btn.when_held = runboth
- pause()
Add Comment
Please, Sign In to add comment