gpio routines updated

This commit is contained in:
Balthasar Reuter
2015-05-19 23:27:30 +02:00
parent 93ffd97a2c
commit 86b3cc568b

View File

@@ -10,11 +10,7 @@ from sys import exit
from time import sleep
import pygame
try:
import RPi.GPIO as GPIO
except RuntimeError:
print("Error importing RPi.GPIO! This is probably because you need superuser privileges.")
import RPi.GPIO as GPIO
#####################
### Configuration ###
@@ -250,11 +246,11 @@ def setup_gpio():
def teardown(exit_code=0):
display.teardown()
# GPIO.cleanup()
GPIO.cleanup()
exit(exit_code)
def main():
# setup_gpio()
setup_gpio()
while True:
try:
display.mainloop(image_idle)