]> vault307.fbx.one Git - micorpython_ir.git/blobdiff - ir_tx/philips.py
Release 0.1 Various bugfixes and improvements.
[micorpython_ir.git] / ir_tx / philips.py
index 3ca270ae746fd79734029a4b9b22fb51566dd32b..90b9de941f4d7bc17729fab3e195e9ba1f2a53ef 100644 (file)
@@ -12,6 +12,7 @@ _T_RC5 = const(889)  # Time for pulse of carrier
 
 
 class RC5(IR):
+    valid = (0x1f, 0x3f, 1)  # Max addr, data, toggle
 
     def __init__(self, pin, freq=36000, verbose=False):
         super().__init__(pin, freq, 28, 30, verbose)
@@ -37,6 +38,7 @@ _T_RC6 = const(444)
 _T2_RC6 = const(889)
 
 class RC6_M0(IR):
+    valid = (0xff, 0xff, 1)  # Max addr, data, toggle
 
     def __init__(self, pin, freq=36000, verbose=False):
         super().__init__(pin, freq, 44, 30, verbose)