]> vault307.fbx.one Git - micorpython_ir.git/blobdiff - ir_rx/acquire.py
Make compatible with Raspberry Pi Pico (RP2 arch).
[micorpython_ir.git] / ir_rx / acquire.py
index e5162b21250b0aae398dc5fc52c81237f3774337..ea0b2e4eafd35499fa3c7ca2d86dcec57739762c 100644 (file)
@@ -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...')
     return irg.acquire()