adafruit / adafruit/Adafruit_CircuitPython_ServoKit
Hello, i'm trying to use PCA96885 Raspberry Pico running Micropython. it trows an error:- THIS ----ImportError: no module named 'busio'
- Dominant language
- Python
- Stars
- 78
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Description
import time
import busio
from adafruit_servokit import ServoKit
kit = ServoKit(channels=16,i2c=(busio.I2C(board.SCL, board.SDA)))
# Tuned for GWS S03T STD Servos
kit.servo[0].set_pulse_width_range(775, 2450)
kit.servo[1].set_pulse_width_range(775, 2450)
# Return servos to starting positions
kit.servo[0].angle = 0
kit.servo[1].angle = 180
time.sleep(1)
while True:
for tgtAngle in range(0, 180, 1):
kit.servo[0].angle = tgtAngle
kit.servo[1].angle = 180 - tgtAngle
time.sleep(0.1)
for tgtAngle in range(180, 0, -1):
kit.servo[0].angle = tgtAngle
kit.servo[1].angle = 180 - tgtAngle
time.sleep(0.1)
can you help me ,
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by checking the reported Raspberry Pi Pico MicroPython environment and the imports shown in the issue, especially busio and adafruit_servokit. Determine whether this library supports that environment; done requires a verified compatibility path or clear documentation that the reported setup is unsupported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 24/100