from nec_ir import NEC_IR
from machine import Pin
import time
def ir_callback(address, command):
print("Endereço:", hex(address), "Comando:", hex(command))
ir = NEC_IR(pin=0, callback=ir_callback)
print("Aguardando sinais IR...")
while True:
time.sleep(1)