Skip to content

Commit 413c3c3

Browse files
drop const and improve docs: motor.py
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
1 parent dde3a8a commit 413c3c3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

adafruit_motor/motor.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@
2323
__version__ = "0.0.0-auto.0"
2424
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Motor.git"
2525

26-
from micropython import const
26+
FAST_DECAY = 0
27+
"""Recirculation current fast decay mode (coasting)"""
2728

28-
FAST_DECAY = const(0) # Recirculation current fast decay mode (coasting)
29-
SLOW_DECAY = const(1) # Recirculation current slow decay mode (braking)
29+
SLOW_DECAY = 1
30+
"""Recirculation current slow decay mode (braking)"""
3031

3132

3233
class DCMotor:

0 commit comments

Comments
 (0)