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:
parent
79d9188257
commit
bc9083e005
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue