Update code to match guide.

This commit is contained in:
Kattni 2018-09-30 15:02:01 -04:00 committed by GitHub
parent 9dcc8ced04
commit b2e30a0269
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)