X-Git-Url: https://vault307.fbx.one/gitweb/micorpython_ir.git/blobdiff_plain/36140aa568d4a538adafb03e575b26de8a0784ef..d8d6758c3370f4adc636aed7b935a492754f6062:/ir_tx/philips.py diff --git a/ir_tx/philips.py b/ir_tx/philips.py index b069361..a37dd5b 100644 --- a/ir_tx/philips.py +++ b/ir_tx/philips.py @@ -6,7 +6,6 @@ from micropython import const from sys import platform -ESP32 = platform == 'esp32' or platform == 'esp32_LoBo' from ir_tx import IR # Philips RC5 protocol @@ -15,8 +14,6 @@ ermsg = 'ESP32 does not support Philips protocols' 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): @@ -42,8 +39,6 @@ _T2_RC6 = const(889) 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):