from micropython import const
from sys import platform
-ESP32 = platform == 'esp32' or platform == 'esp32_LoBo'
from ir_tx import IR
# Philips RC5 protocol
class RC5(IR):
def __init__(self, pin, freq=36000, verbose=False):
- if ESP32:
- raise RuntimeError(ermsg)
super().__init__(pin, freq, 28, 30, verbose)
def tx(self, addr, data, toggle):
class RC6_M0(IR):
def __init__(self, pin, freq=36000, verbose=False):
- if ESP32:
- raise RuntimeError(ermsg)
super().__init__(pin, freq, 44, 30, verbose)
def tx(self, addr, data, toggle):