We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06d2ad0 + 58f4af2 commit 35a9fc6Copy full SHA for 35a9fc6
adafruit_motorkit.py
@@ -65,15 +65,15 @@ class MotorKit:
65
"""Class representing an Adafruit DC & Stepper Motor FeatherWing, Shield or Pi Hat kit.
66
67
Automatically uses the I2C bus on a Feather, Metro or Raspberry Pi."""
68
- def __init__(self):
+ def __init__(self, address=0x60):
69
self._motor1 = None
70
self._motor2 = None
71
self._motor3 = None
72
self._motor4 = None
73
self._stepper1 = None
74
self._stepper2 = None
75
i2c = busio.I2C(board.SCL, board.SDA)
76
- self._pca = PCA9685(i2c, address=0x60)
+ self._pca = PCA9685(i2c, address=address)
77
self._pca.frequency = 1600
78
79
# We can save memory usage (~300 bytes) by deduplicating the construction of the objects for
0 commit comments