Files
mopidy-touchscreen/mopidy_touchscreen/gpio_inpput_manager.py
2014-08-08 11:20:31 +02:00

15 lines
282 B
Python

import RPi.GPIO as GPIO
import logging
logger = logging.getLogger(__name__)
class GPIOManager():
def __init__(self):
GPIO.add_event_detect(23, GPIO.RISING, callback=self.printFunction, bouncetime=300)
def printFunction(self):
logger.error("Sakatu da")