From da45657a4ccd211247097137e429c3af607279d7 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 7 Jan 2016 16:11:44 +0100 Subject: [PATCH] removed led.py --- Moped/led.py | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100755 Moped/led.py diff --git a/Moped/led.py b/Moped/led.py deleted file mode 100755 index 6e06a25..0000000 --- a/Moped/led.py +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/python - -from time import sleep - -import RPi.GPIO as GPIO - -yellowLed = 15 -redLed = 17 -greenLed = 18 - -sleepTime = 0.25 - -try: - GPIO.setmode(GPIO.BCM) - GPIO.setup(yellowLed, GPIO.OUT) - GPIO.setup(redLed, GPIO.OUT) - GPIO.setup(greenLed, GPIO.OUT) - - while True: - GPIO.output(yellowLed, 1) - GPIO.output(redLed, 0) - GPIO.output(greenLed, 0) - sleep(sleepTime) - GPIO.output(yellowLed, 0) - GPIO.output(redLed, 1) - GPIO.output(greenLed, 0) - sleep(sleepTime) - GPIO.output(yellowLed, 0) - GPIO.output(redLed, 0) - GPIO.output(greenLed, 1) - sleep(sleepTime) -except KeyboardInterrupt: - GPIO.output(yellowLed, 0) - GPIO.output(redLed, 0) - GPIO.output(greenLed, 0) -finally: - GPIO.cleanup()