]> vault307.fbx.one Git - micorpython_ir.git/blobdiff - ir_tx/nec.py
Add MCE. Fix bug with RC5X.
[micorpython_ir.git] / ir_tx / nec.py
index 1e02c9f9068acb74b442dfd2f85e2399ce47fac6..10cc67bfe164b72bcb5822dbbc02af3aefa3caf9 100644 (file)
@@ -13,7 +13,7 @@ _T_ONE = const(1687)
 class NEC(IR):
 
     def __init__(self, pin, freq=38000, verbose=False):  # NEC specifies 38KHz
-        super().__init__(pin, freq, 68, 50, verbose)
+        super().__init__(pin, freq, 68, 33, verbose)  # Measured duty ratio 33%
 
     def _bit(self, b):
         self.append(_TBURST, _T_ONE if b else _TBURST)