The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Relay
By Guest on 15th May 2019 08:39:30 AM | Syntax: PYCON | Views: 3



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1.  
  2. import time
  3.  
  4. import RPi.GPIO as GPIO
  5.  
  6.  
  7. GPIO.setmode(GPIO.BCM)
  8. GPIO.setup(17, GPIO.OUT)
  9.  
  10. GPIO.output(17, GPIO.LOW)
  11.  
  12. time.sleep(5)
  13.  
  14. GPIO.output(17, GPIO.HIGH)
  15. GPIO.cleanup()



  • Recent Pastes