X-Git-Url: https://vault307.fbx.one/gitweb/micorpython_ir.git/blobdiff_plain/d2a0c49467a3a7832d5d350ea00a50c59359722b..d60573594da7d18c86ff2bfd954a86a23eebcbe9:/ir_tx_test.py diff --git a/ir_tx_test.py b/ir_tx_test.py index 2d78728..0220c7b 100644 --- a/ir_tx_test.py +++ b/ir_tx_test.py @@ -54,13 +54,13 @@ async def main(proto): # Option to send REPEAT code. Most remotes do this. rep_code = True elif proto == 5: - irb = RC5(pin, 38000) + irb = RC5(pin, 38000) # My decoder chip is 38KHz elif proto == 6: - irb = RC6_M0(pin, 38000) + irb = RC6_M0(pin, 38000, True) # Verbose b = [] # Rbutton instances b.append(Rbutton(irb, Pin('X3', Pin.IN, Pin.PULL_UP), 0x1, 0x7, rep_code)) - b.append(Rbutton(irb, Pin('X4', Pin.IN, Pin.PULL_UP), 0x10, 0xb, rep_code)) + b.append(Rbutton(irb, Pin('X4', Pin.IN, Pin.PULL_UP), 0xfa, 0xb, rep_code)) led = LED(1) while True: await asyncio.sleep_ms(500) # Obligatory flashing LED.