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