X-Git-Url: https://vault307.fbx.one/gitweb/micorpython_ir.git/blobdiff_plain/d2a0c49467a3a7832d5d350ea00a50c59359722b..c1af37a9947002e9a95813966750b72871a2f4f0:/ir_tx_test.py diff --git a/ir_tx_test.py b/ir_tx_test.py index 2d78728..08230a3 100644 --- a/ir_tx_test.py +++ b/ir_tx_test.py @@ -46,15 +46,15 @@ class Rbutton: async def main(proto): # Test uses a 38KHz carrier. Some Philips systems use 36KHz. # If button is held down normal behaviour is to retransmit - # but most NEC models send a RPEAT code - rep_code = False # Don't care for RC-X. NEC protocol only. + # but most NEC models send a REPEAT code + rep_code = False # Rbutton constructor requires False for RC-X. NEC protocol only. pin = Pin('X1') if not proto: irb = NEC(pin) # Default NEC freq == 38KHz # Option to send REPEAT code. Most remotes do this. rep_code = True elif proto == 5: - irb = RC5(pin, 38000) + irb = RC5(pin, 38000) # My decoder chip is 38KHz elif proto == 6: irb = RC6_M0(pin, 38000)