Fix IR initial state

This commit is contained in:
Konstantin Lampalzer 2021-02-12 17:43:10 +01:00
parent d468732040
commit 08675bdc5c
No known key found for this signature in database
GPG key ID: 9A60A522835A2AD9

View file

@ -24,9 +24,9 @@ GPIO.set_mode(BOTTOM_MIDDLE_PIN, pigpio.INPUT)
GPIO.set_mode(BOTTOM_RIGHT_PIN, pigpio.INPUT) GPIO.set_mode(BOTTOM_RIGHT_PIN, pigpio.INPUT)
states = { states = {
str(BOTTOM_LEFT_PIN): 0, str(BOTTOM_LEFT_PIN): GPIO.read(BOTTOM_LEFT_PIN),
str(BOTTOM_MIDDLE_PIN): 0, str(BOTTOM_MIDDLE_PIN): GPIO.read(BOTTOM_MIDDLE_PIN),
str(BOTTOM_RIGHT_PIN): 0} str(BOTTOM_RIGHT_PIN): GPIO.read(BOTTOM_RIGHT_PIN)}
def gpio_callback(gpio, level, tick): def gpio_callback(gpio, level, tick):
states[str(gpio)] = level states[str(gpio)] = level