Added newline

Added newline to print statement so serial output matches the 2
line serial output in the receive code. This way if you place them
side by side, the output matches.
This commit is contained in:
Kattni Rembor 2018-07-24 12:03:14 -04:00
parent 79d9188257
commit bc9083e005

View file

@ -13,14 +13,14 @@ encoder = adafruit_irremote.GenericTransmit(header=[9500, 4500], one=[550, 550],
while True: while True:
if cpx.button_a: if cpx.button_a:
print("Button A pressed!") print("Button A pressed! \n")
cpx.red_led = True cpx.red_led = True
encoder.transmit(pulseout, [255, 2, 255, 0]) encoder.transmit(pulseout, [255, 2, 255, 0])
cpx.red_led = False cpx.red_led = False
# wait so the receiver can get the full message # wait so the receiver can get the full message
time.sleep(0.2) time.sleep(0.2)
if cpx.button_b: if cpx.button_b:
print("Button B pressed!") print("Button B pressed! \n")
cpx.red_led = True cpx.red_led = True
encoder.transmit(pulseout, [255, 2, 191, 64]) encoder.transmit(pulseout, [255, 2, 191, 64])
cpx.red_led = False cpx.red_led = False