Control Servos with python !
Project description
Control servos with python !
Example to run a servo connected to pin 3 at angle 90:
import RPI.GPIO as GPIO
import piServo
servo = piServo.Servo(3)
servo.initServo()
servo.setAngle(90)
servo.stopServo()
GPIO.cleanup()
Use the stopServo() function at the end of your code or before GPIO.cleanup()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
piServo-2.0.tar.gz
(2.1 kB
view details)
File details
Details for the file piServo-2.0.tar.gz.
File metadata
- Download URL: piServo-2.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
826f4107fe792959a7b502faeb32a083f0a7d2019a629f660f964c7f4e4c8a69
|
|
| MD5 |
91c6e4aea52bc4b3e7cca693e951a7cc
|
|
| BLAKE2b-256 |
5689d9f671bb73f843cf68e996c0888c5f906ddd9d1d24d24823a073889dff34
|