Quantcast
Viewing all articles
Browse latest Browse all 4873

MicroPython • Re: Raspberry Pi Pico IR Receiver

This should work to show when an IR button is pushed to at least prove the hardware is working ...

Code:

from   machine import Pindef KeyPressed():  print("Key pressed")ir_rx_pin = Pin(16, Pin.IN)ir_rx_pin.irq(trigger=Pin.IRQ_FALLING, handler=KeyPressed)while True:  pass
Absolutely nothing. Can I assume that my IR receiver is dead?

Statistics: Posted by coomb — Tue Feb 20, 2024 4:56 pm



Viewing all articles
Browse latest Browse all 4873

Trending Articles