adafruit / Adafruit_CircuitPython_ServoKit

CircuitPython helper library for the PWM/Servo FeatherWing, Shield and Pi HAT kits.
MIT License
69 stars 29 forks source link

cannot import name 'Servokit' from 'adafruit_servokit' #36

Closed sergio100899 closed 2 years ago

sergio100899 commented 2 years ago

I try to run this code:

from adafruit_servokit import Servokit

myKit = ServoKit(channels=16) myKit.servo[0].angle = 90

but it gives me this error: Screenshot from 2022-02-18 21-31-57 I've installed the library using sudo pip3 install adafruit-circuitpython-servokit and running the code with python 3.8

dhalbert commented 2 years ago
from adafruit_servokit import Servokit

You need ServoKit with a capital K.