mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-05 06:35:43 +00:00
15 lines
282 B
Python
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")
|