X-Git-Url: https://vault307.fbx.one/gitweb/micorpython_ir.git/blobdiff_plain/a5c58e92f187b72111774f417d82238ec7e3b6eb..2ebf5db498266618fc0f037469309a6ea1906304:/ir_rx/acquire.py?ds=inline diff --git a/ir_rx/acquire.py b/ir_rx/acquire.py index e8c6a12..ea0b2e4 100644 --- a/ir_rx/acquire.py +++ b/ir_rx/acquire.py @@ -101,6 +101,8 @@ def test(): pin = Pin(13, Pin.IN) elif platform == 'esp32' or platform == 'esp32_LoBo': pin = Pin(23, Pin.IN) + elif platform == 'rp2': + pin = Pin(16, Pin.IN) irg = IR_GET(pin) print('Waiting for IR data...') - irg.acquire() + return irg.acquire()