Skip to content

Hello, i'm trying to use PCA96885 Raspberry Pico running Micropython. it trows an error:- THIS ----ImportError: no module named 'busio' #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ArunKRanadeep opened this issue Mar 15, 2024 · 1 comment

Comments

@ArunKRanadeep
Copy link

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 ,

@ArunKRanadeep ArunKRanadeep changed the title ImportError: no module named 'busio' Hello, i'm trying to use PCA96885 Raspberry Pico running Micropython. it trows an error:- THIS ----ImportError: no module named 'busio' Mar 15, 2024
@caternuson
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants