Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GPIO.setup(17, GPIO.OUT) # Configure GPIO so that an LED can be lit
- try:
- GPIO.output(17, True) # Switch on the LED
- #Do other stuff....
- except:
- print("exiting")
- GPIO.output(17, False) # Switch off the LED
- GPIO.cleanup()
- kill -s INT [pid]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement