]> vault307.fbx.one Git - micorpython_ir.git/blobdiff - ir_tx_test.py
Prior to RC6 rx redesign.
[micorpython_ir.git] / ir_tx_test.py
index 2d787285315fb1ee032d343882e8e3c62f32753c..0220c7b894f4aa6618ee802f5d7dd8e05976d44b 100644 (file)
@@ -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.