Skip to content

Commit e342bce

Browse files
authored
Moved motor_servo_sweep_simpletest.py from pulseio.PWMOut to pwmio.PWMOut
1 parent 3d7a86d commit e342bce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/motor_servo_sweep_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
import time
55
import board
6-
import pulseio
6+
import pwmio
77
from adafruit_motor import servo
88

99
# create a PWMOut object on the control pin.
10-
pwm = pulseio.PWMOut(board.D5, duty_cycle=0, frequency=50)
10+
pwm = pwmio.PWMOut(board.D5, duty_cycle=0, frequency=50)
1111

1212
# To get the full range of the servo you will likely need to adjust the min_pulse and max_pulse to
1313
# match the stall points of the servo.

0 commit comments

Comments
 (0)