Skip to content

Commit c2c4c91

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 f43b59d commit c2c4c91

File tree

1 file changed

+2
-2
lines changed
  • Circuit_Playground_Express_IR_Treasure_Hunt/CPX_Treasure

1 file changed

+2
-2
lines changed

Circuit_Playground_Express_IR_Treasure_Hunt/CPX_Treasure/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
# Create an encoder that will take numbers and turn them into IR pulses
2222
encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500],
23-
one=[550, 550],
24-
zero=[550, 1700],
23+
one=[550, 1700],
24+
zero=[550, 550],
2525
trail=0)
2626

2727
while True:

0 commit comments

Comments
 (0)