silver2row

Starting on Servo

May 4th, 2020
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. from smbus2 import SMBus
  2. from ServoLibII import *  # https://pastebin.com/RhKjeKC1
  3. from time import sleep
  4.  
  5. i2c_bus = SMBus("/dev/i2c-2")
  6. x = PCA9685(i2c_bus, 0b10000000)
Add Comment
Please, Sign In to add comment