diff --git a/Circuit_Playground_Express_IR_Treasure_Hunt/CPX_Treasure/code.py b/Circuit_Playground_Express_IR_Treasure_Hunt/CPX_Treasure/code.py index e3e304aad..e94cf4a47 100644 --- a/Circuit_Playground_Express_IR_Treasure_Hunt/CPX_Treasure/code.py +++ b/Circuit_Playground_Express_IR_Treasure_Hunt/CPX_Treasure/code.py @@ -19,9 +19,9 @@ pulseout = pulseio.PulseOut(board.IR_TX, frequency=38000, duty_cycle=2 ** 15) # Create an encoder that will take numbers and turn them into IR pulses -encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500], - one=[550, 550], - zero=[550, 1700], +encoder = adafruit_irremote.GenericTransmit(header=[9000, 4500], + one=[560, 1700], + zero=[560, 560], trail=0) while True: diff --git a/Circuit_Playground_Express_IR_Zombie_Game/code.py b/Circuit_Playground_Express_IR_Zombie_Game/code.py index c482905d5..c889c609a 100755 --- a/Circuit_Playground_Express_IR_Zombie_Game/code.py +++ b/Circuit_Playground_Express_IR_Zombie_Game/code.py @@ -28,8 +28,10 @@ # Create a 'pulseio' output, to send infrared signals on the IR transmitter @ 38KHz pulseout = pulseio.PulseOut(board.IR_TX, frequency=38000, duty_cycle=2 ** 15) # Create an encoder that will take numbers and turn them into NEC IR pulses -encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500], one=[550, 550], - zero=[550, 1700], trail=0) +encoder = adafruit_irremote.GenericTransmit(header=[9000, 4500], + one=[560, 1700], + zero=[560, 560], + trail=0) # Set between 0 and 1 to set LED pulse speed. Smaller numbers are slower. healer_led_pulse = 0.008 diff --git a/Circuit_Playground_Express_and_IR/CPX_IR_CPX_transmit/code.py b/Circuit_Playground_Express_and_IR/CPX_IR_CPX_transmit/code.py index 22dc97e00..7b3d778bf 100644 --- a/Circuit_Playground_Express_and_IR/CPX_IR_CPX_transmit/code.py +++ b/Circuit_Playground_Express_and_IR/CPX_IR_CPX_transmit/code.py @@ -11,8 +11,10 @@ # Create a 'pulseio' output, to send infrared signals on the IR transmitter @ 38KHz pulseout = pulseio.PulseOut(board.IR_TX, frequency=38000, duty_cycle=2 ** 15) # Create an encoder that will take numbers and turn them into NEC IR pulses -encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500], one=[550, 550], - zero=[550, 1700], trail=0) +encoder = adafruit_irremote.GenericTransmit(header=[9000, 4500], + one=[560, 1700], + zero=[560, 560], + trail=0) while True: if cpx.button_a: diff --git a/IrRobotControl/glove/code.py b/IrRobotControl/glove/code.py index 3eafa211f..accacb0b8 100644 --- a/IrRobotControl/glove/code.py +++ b/IrRobotControl/glove/code.py @@ -33,9 +33,9 @@ pulseout = pulseio.PulseOut(board.IR_TX, frequency=38000, duty_cycle=2 ** 15) # Create an encoder that will take numbers and turn them into IR pulses -encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500], - one=[550, 550], - zero=[550, 1700], +encoder = adafruit_irremote.GenericTransmit(header=[9000, 4500], + one=[560, 1700], + zero=[560, 560], trail=0) def log(s): diff --git a/STEMMA_IR_LED_Emitter/code.py b/STEMMA_IR_LED_Emitter/code.py index 599daab27..b2294ac74 100644 --- a/STEMMA_IR_LED_Emitter/code.py +++ b/STEMMA_IR_LED_Emitter/code.py @@ -10,16 +10,17 @@ # Create a 'PulseOut' to send infrared signals on the IR transmitter @ 38KHz 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 -) +encoder = adafruit_irremote.GenericTransmit(header=[9000, 4500], + one=[560, 1700], + zero=[560, 560], + trail=0) # count variable count = 0 while True: # send IR pulse - emitter.transmit(pulseout, [255, 2, 255, 0]) + encoder.transmit(pulseout, [255, 2, 255, 0]) # increase count count += 1 # print to REPL