Skip to content

Commit 178a1a1

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 a4f5493 commit 178a1a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

STEMMA_IR_LED_Emitter/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
pulseout = pulseio.PulseOut(board.D5, frequency=38000, duty_cycle=2**15)
1212
# Create an encoder that will take numbers and turn them into NEC IR pulses
1313
emitter = adafruit_irremote.GenericTransmit(
14-
header=[9500, 4500], one=[550, 550], zero=[550, 1700], trail=0
14+
header=[9500, 4500], one=[550, 1700], zero=[550, 550], trail=0
1515
)
1616

1717
# count variable

0 commit comments

Comments
 (0)