X-Git-Url: https://vault307.fbx.one/gitweb/micorpython_ir.git/blobdiff_plain/d8d6758c3370f4adc636aed7b935a492754f6062..8ac6c4b0b81221439541db8f7bdbab29913da9bb:/ir_tx/nec.py diff --git a/ir_tx/nec.py b/ir_tx/nec.py index 1e02c9f..da1af24 100644 --- a/ir_tx/nec.py +++ b/ir_tx/nec.py @@ -11,9 +11,10 @@ _TBURST = const(563) _T_ONE = const(1687) class NEC(IR): + valid = (0xffff, 0xff, 0) # Max addr, data, toggle 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)