Skip to content

Commit c1a765d

Browse files
authored
Merge pull request #102 from adafruit/dherrada-patch-1
Moved from pulseio.PWMOut to pwmio.PWMOut
2 parents f8ff943 + 5754113 commit c1a765d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/circuitplayground_ir_transmit.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111
up the NeoPixels on the RECEIVING Circuit Playground Express!"""
1212
import time
1313
import pulseio
14+
import pwmio
1415
import board
1516
import adafruit_irremote
1617
from adafruit_circuitplayground import cp
1718

18-
# Create a 'pulseio' output, to send infrared signals from the IR transmitter
19+
# Create a 'pwmio' output, to send infrared signals from the IR transmitter
1920
try:
20-
pwm = pulseio.PWMOut(board.IR_TX, frequency=38000, duty_cycle=2 ** 15)
21+
pwm = pwmio.PWMOut(board.IR_TX, frequency=38000, duty_cycle=2 ** 15)
2122
except AttributeError as err:
2223
raise NotImplementedError(
2324
"This example does not work with Circuit Playground Bluefruit!"

0 commit comments

Comments
 (0)