Skip to content

Commit 6d0ee99

Browse files
committed
Added print to send
1 parent 6e21954 commit 6d0ee99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/ir_transmit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# Create a button object to trigger IR transmit
99
button = digitalio.DigitalInOut(board.D4)
1010
button.direction = digitalio.Direction.INPUT
11+
# This is for CPX. For an external button
1112
button.pull = digitalio.Pull.DOWN
1213

1314
# Create a 'pulseio' output, to send infrared signals on the IR transmitter @ 38KHz
@@ -19,5 +20,6 @@
1920

2021
while True:
2122
if button.value:
23+
print("IR signal sent!")
2224
encoder.transmit(pulseout, [255, 2, 255, 0])
2325
time.sleep(0.2)

0 commit comments

Comments
 (0)