adafruit / Adafruit_CircuitPython_MotorKit

CircuitPython helper library for the DC & Stepper Motor FeatherWing, Shield and Pi Hat kits.
MIT License
86 stars 31 forks source link

Update motorkit_dc_test.py #16

Closed CedarGroveStudios closed 5 years ago

CedarGroveStudios commented 5 years ago

Here's the updated example code. It corrects the incompatibility with non-express boards and properly cycles through the entire motor throttle range from -1.0 to 0 to +1.0.