Skip to content

Instantly share code, notes, and snippets.

@DzikuVx
Created January 2, 2015 19:57
Show Gist options
  • Save DzikuVx/6daffa60b669e055a1d1 to your computer and use it in GitHub Desktop.
Save DzikuVx/6daffa60b669e055a1d1 to your computer and use it in GitHub Desktop.
import RPi.GPIO as GPIO
import time
def main():
# GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.OUT)
GPIO.output(18, GPIO.HIGH)
time.sleep(5);
GPIO.output(18, GPIO.LOW)
GPIO.cleanup()
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment