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:
parent
a4f549354f
commit
178a1a1b22
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue