Fix IR initial state
This commit is contained in:
parent
d468732040
commit
08675bdc5c
1 changed files with 3 additions and 3 deletions
|
@ -24,9 +24,9 @@ GPIO.set_mode(BOTTOM_MIDDLE_PIN, pigpio.INPUT)
|
|||
GPIO.set_mode(BOTTOM_RIGHT_PIN, pigpio.INPUT)
|
||||
|
||||
states = {
|
||||
str(BOTTOM_LEFT_PIN): 0,
|
||||
str(BOTTOM_MIDDLE_PIN): 0,
|
||||
str(BOTTOM_RIGHT_PIN): 0}
|
||||
str(BOTTOM_LEFT_PIN): GPIO.read(BOTTOM_LEFT_PIN),
|
||||
str(BOTTOM_MIDDLE_PIN): GPIO.read(BOTTOM_MIDDLE_PIN),
|
||||
str(BOTTOM_RIGHT_PIN): GPIO.read(BOTTOM_RIGHT_PIN)}
|
||||
|
||||
def gpio_callback(gpio, level, tick):
|
||||
states[str(gpio)] = level
|
||||
|
|
Reference in a new issue