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.
1 parent 2200f21 commit 5a0eb1eCopy full SHA for 5a0eb1e
adafruit_drv2605.py
@@ -208,6 +208,12 @@ def sequence(self) -> "_DRV2605_Sequence":
208
"""
209
return self._sequence
210
211
+ def set_realtime_value(self, val: int) -> None:
212
+ """Set the output value (amplitude) used for Real-Time Playback"""
213
+ if not 0 <= val <= 255:
214
+ raise ValueError("Real-Time Playback value must be a value within 0-255!")
215
+ self._write_u8(_DRV2605_REG_RTPIN, val)
216
+
217
def set_waveform(self, effect_id: int, slot: int = 0) -> None:
218
"""Select an effect waveform for the specified slot (default is slot 0,
219
but up to 8 effects can be combined with slot values 0 to 7). See the
0 commit comments