X-Git-Url: https://vault307.fbx.one/gitweb/micorpython_ir.git/blobdiff_plain/8ac6c4b0b81221439541db8f7bdbab29913da9bb..b1b7749feb3de08f830e423ee01f5baf3b84fc69:/ir_tx/mcetest.py?ds=sidebyside diff --git a/ir_tx/mcetest.py b/ir_tx/mcetest.py index 250c693..fc473d9 100644 --- a/ir_tx/mcetest.py +++ b/ir_tx/mcetest.py @@ -53,10 +53,7 @@ class Rbutton: self.irb.transmit(self.addr, self.data, _REP, True) async def main(): - if ESP32: # Pins for IR LED gate - pin = (Pin(23, Pin.OUT, value = 0), Pin(21, Pin.OUT, value = 0)) - else: - pin = Pin('X1') + pin = Pin(23, Pin.OUT, value = 0) if ESP32 else Pin('X1') irb = MCE(pin) # verbose=True) # Uncomment the following to print transmit timing # irb.timeit = True