@@ -191,7 +191,7 @@ def library(self, val: int) -> None:
191
191
@property
192
192
def sequence (self ) -> "_DRV2605_Sequence" :
193
193
"""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
195
195
property with the slot number. A slot must be set to either an :class:`~Effect`
196
196
or :class:`~Pause` class. See the datasheet for a complete table of effect ID
197
197
values and the associated waveform / effect.
@@ -316,7 +316,7 @@ def __init__(self, DRV2605_instance: DRV2605) -> None:
316
316
def __setitem__ (self , slot : int , effect : Union [Effect , Pause ]) -> None :
317
317
"""Write an Effect or Pause to a slot."""
318
318
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 !" )
320
320
if not isinstance (effect , (Effect , Pause )):
321
321
raise TypeError ("Effect must be either an Effect() or Pause()!" )
322
322
# pylint: disable=protected-access
@@ -325,7 +325,7 @@ def __setitem__(self, slot: int, effect: Union[Effect, Pause]) -> None:
325
325
def __getitem__ (self , slot : int ) -> Union [Effect , Pause ]:
326
326
"""Read an effect ID from a slot. Returns either a Pause or Effect class."""
327
327
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 !" )
329
329
# pylint: disable=protected-access
330
330
slot_contents = self ._drv2605 ._read_u8 (_DRV2605_REG_WAVESEQ1 + slot )
331
331
if slot_contents & 0x80 :
0 commit comments