correct one and zero list values

the list values for ONE and ZERO are swapped from what is described in the Adafruit_irremote.py library. This error causes the receiver to get the one-s compliment of the expected data.
This commit is contained in:
bradanlane 2024-05-05 09:55:52 -04:00 committed by GitHub
parent a4f549354f
commit 178a1a1b22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,7 @@ import adafruit_irremote
pulseout = pulseio.PulseOut(board.D5, frequency=38000, duty_cycle=2**15)
# Create an encoder that will take numbers and turn them into NEC IR pulses
emitter = adafruit_irremote.GenericTransmit(
header=[9500, 4500], one=[550, 550], zero=[550, 1700], trail=0
header=[9500, 4500], one=[550, 1700], zero=[550, 550], trail=0
)
# count variable