Skip to content

Commit 465fe5a

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 c2c4c91 commit 465fe5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IrRobotControl/glove/code.py

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

3535
# Create an encoder that will take numbers and turn them into IR pulses
3636
encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500],
37-
one=[550, 550],
38-
zero=[550, 1700],
37+
one=[550, 1700],
38+
zero=[550, 550],
3939
trail=0)
4040

4141
def log(s):

0 commit comments

Comments
 (0)