Skip to content

Commit f43b59d

Browse files
authored
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.
1 parent 178a1a1 commit f43b59d

File tree

1 file changed

+2
-2
lines changed
  • Circuit_Playground_Express_and_IR/CPX_IR_CPX_transmit

1 file changed

+2
-2
lines changed

Circuit_Playground_Express_and_IR/CPX_IR_CPX_transmit/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# Create a 'pulseio' output, to send infrared signals on the IR transmitter @ 38KHz
1212
pulseout = pulseio.PulseOut(board.IR_TX, frequency=38000, duty_cycle=2 ** 15)
1313
# Create an encoder that will take numbers and turn them into NEC IR pulses
14-
encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500], one=[550, 550],
15-
zero=[550, 1700], trail=0)
14+
encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500], one=[550, 1700],
15+
zero=[550, 550], trail=0)
1616

1717
while True:
1818
if cpx.button_a:

0 commit comments

Comments
 (0)