Update code to match guide.
This commit is contained in:
parent
9dcc8ced04
commit
b2e30a0269
1 changed files with 2 additions and 2 deletions
|
|
@ -3,8 +3,8 @@ import board
|
|||
import pulseio
|
||||
from adafruit_motor import servo
|
||||
|
||||
# create a PWMOut object on Pin 13.
|
||||
pwm = pulseio.PWMOut(board.D13, duty_cycle=2 ** 15, frequency=50)
|
||||
# create a PWMOut object on Pin A2.
|
||||
pwm = pulseio.PWMOut(board.A2, duty_cycle=2 ** 15, frequency=50)
|
||||
|
||||
# Create a servo object, my_servo.
|
||||
my_servo = servo.Servo(pwm)
|
||||
|
|
|
|||
Loading…
Reference in a new issue