]> vault307.fbx.one Git - micorpython_ir.git/blobdiff - ir_rx_test.py
README update.
[micorpython_ir.git] / ir_rx_test.py
index 908d23f83cb229e29f2610bba9971a2ec417b0ac..82f97dd0862cedbdbc265f1ad04a215bdc0e1932 100644 (file)
@@ -9,7 +9,7 @@
 from sys import platform
 import time
 from machine import Pin, freq
 from sys import platform
 import time
 from machine import Pin, freq
-from arem import *
+from ir_rx import *
 
 ESP32 = platform == 'esp32' or platform == 'esp32_LoBo'
 
 
 ESP32 = platform == 'esp32' or platform == 'esp32_LoBo'
 
@@ -46,11 +46,12 @@ print(s)
 
 def test(proto=0):
     if proto == 0:
 
 def test(proto=0):
     if proto == 0:
-        ir = NEC_IR(p, cb, True, 0)  # Extended mode, dummy ctrl arg for callback
+        ir = NEC_IR(p, cb)  # Extended mode
     elif proto == 5:
         ir = RC5_IR(p, cb)
     elif proto == 6:
         ir = RC6_M0(p, cb)
     elif proto == 5:
         ir = RC5_IR(p, cb)
     elif proto == 6:
         ir = RC6_M0(p, cb)
+        ir.verbose = True
     # A real application would do something here...
     #while True:
         #time.sleep(5)
     # A real application would do something here...
     #while True:
         #time.sleep(5)