Skip to content

Commit de07607

Browse files
black passed
1 parent 9df0164 commit de07607

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/motor_pca9685_dc_motor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
# See here for more info: https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino/faq#faq-13
3333
pca.channels[7].duty_cycle = 0xFFFF
3434
motor4 = motor.DCMotor(pca.channels[5], pca.channels[6])
35-
motor4.decay_mode = motor.SLOW_DECAY # Set motor to active braking mode to improve performance
35+
motor4.decay_mode = (
36+
motor.SLOW_DECAY
37+
) # Set motor to active braking mode to improve performance
3638

3739
print("Forwards slow")
3840
motor4.throttle = 0.5

0 commit comments

Comments
 (0)