mirror of
https://github.com/wahyd4/code-sandbox.git
synced 2026-08-09 05:07:03 +10:00
move python code snippets to python folder
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user