Skip to content

Commit e71dd6b

Browse files
committed
Update references to say 8 slots
1 parent 9f00521 commit e71dd6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_drv2605.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def library(self, val: int) -> None:
191191
@property
192192
def sequence(self) -> "_DRV2605_Sequence":
193193
"""List-like sequence of waveform effects.
194-
Get or set an effect waveform for slot 0-6 by indexing the sequence
194+
Get or set an effect waveform for slot 0-7 by indexing the sequence
195195
property with the slot number. A slot must be set to either an :class:`~Effect`
196196
or :class:`~Pause` class. See the datasheet for a complete table of effect ID
197197
values and the associated waveform / effect.
@@ -316,7 +316,7 @@ def __init__(self, DRV2605_instance: DRV2605) -> None:
316316
def __setitem__(self, slot: int, effect: Union[Effect, Pause]) -> None:
317317
"""Write an Effect or Pause to a slot."""
318318
if not 0 <= slot <= 7:
319-
raise IndexError("Slot must be a value within 0-6!")
319+
raise IndexError("Slot must be a value within 0-7!")
320320
if not isinstance(effect, (Effect, Pause)):
321321
raise TypeError("Effect must be either an Effect() or Pause()!")
322322
# pylint: disable=protected-access
@@ -325,7 +325,7 @@ def __setitem__(self, slot: int, effect: Union[Effect, Pause]) -> None:
325325
def __getitem__(self, slot: int) -> Union[Effect, Pause]:
326326
"""Read an effect ID from a slot. Returns either a Pause or Effect class."""
327327
if not 0 <= slot <= 7:
328-
raise IndexError("Slot must be a value within 0-6!")
328+
raise IndexError("Slot must be a value within 0-7!")
329329
# pylint: disable=protected-access
330330
slot_contents = self._drv2605._read_u8(_DRV2605_REG_WAVESEQ1 + slot)
331331
if slot_contents & 0x80:

0 commit comments

Comments
 (0)