Add spi
This commit is contained in:
parent
4bf031a6c7
commit
530ddd8be7
7 changed files with 62 additions and 283 deletions
|
@ -1,11 +1,7 @@
|
|||
import atexit
|
||||
|
||||
from compLib.PCA9685 import PCA9685
|
||||
from compLib.LogstashLogging import Logging
|
||||
|
||||
pwm = PCA9685(0x40, debug=True)
|
||||
pwm.setPWMFreq(50)
|
||||
|
||||
MOTOR_COUNT = 4
|
||||
MAX_MOTOR_SPEED = 4095.0
|
||||
MOTOR_PERCENTAGE_MULT = MAX_MOTOR_SPEED / 100.0
|
||||
|
|
Reference in a new issue