X-Git-Url: https://vault307.fbx.one/gitweb/micorpython_ir.git/blobdiff_plain/2cc41dced14dadbc4df94bc36bf72ecbda9c2c6a..8ac6c4b0b81221439541db8f7bdbab29913da9bb:/ir_rx/acquire.py?ds=sidebyside diff --git a/ir_rx/acquire.py b/ir_rx/acquire.py index 0f094f9..e5162b2 100644 --- a/ir_rx/acquire.py +++ b/ir_rx/acquire.py @@ -63,9 +63,9 @@ class IR_GET(IR_RX): print('Philips RC-6 mode 0') ok = True - if not ok and near(burst[0], 2056) and near(burst[1], 945): + if not ok and near(burst[0], 2000) and near(burst[1], 1000): if near(duration, 19000): - print('Microsoft MCE edition protocol. Not yet supported.') + print('Microsoft MCE edition protocol.') # Constant duration, variable burst length, presumably bi-phase print('Protocol start {} {} Burst length {} duration {}'.format(burst[0], burst[1], lb, duration)) ok = True @@ -103,11 +103,4 @@ def test(): pin = Pin(23, Pin.IN) irg = IR_GET(pin) print('Waiting for IR data...') - irg.acquire() - -# Yamaha NEC -# Virgin RC-5 - -# Samsung Unknown protocol 4576 4472 67 60755 -# Panasonic Unknown protocol 3526 1679 99 54303 -# Vista MCE edition Unknown protocol 2056 945 25 18935 + return irg.acquire()