print('Protocol start {} {} Burst length {} duration {}'.format(burst[0], burst[1], lb, duration))
ok = True
- if not ok and near(burst[0], 4500) and near(burst[1], 4500): # Samsung?
- print('Unsupported protocol. Samsung?')
+ if not ok and near(burst[0], 4500) and near(burst[1], 4500) and lb == 67: # Samsung
+ print('Samsung')
ok = True
if not ok and near(burst[0], 3500) and near(burst[1], 1680): # Panasonic?
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()