mirror of
https://github.com/wahyd4/code-sandbox.git
synced 2026-08-09 05:07:03 +10:00
12 lines
238 B
Python
12 lines
238 B
Python
from adafruit_servokit import ServoKit
|
|
kit = ServoKit(channels=16)
|
|
|
|
print("hello starting")
|
|
kit.servo[0].actuation_range = 160
|
|
|
|
# angle can be 0 - 180
|
|
kit.servo[0].angle = 180
|
|
|
|
kit.servo[0].angle = 0
|
|
kit.continuous_servo[0].throttle = 1
|