Protected
abortReadonly
blinkstickProtected
bufferProtected
isProtected
ledProtected
ledsProtected
applyProtected
applyProtected
Applies a frame to the device and waits for the duration of the frame.
Protected
applyProtected
emitRuns the animation If the animation is already running, it will throw an error
Will wait for the animation to finish before returning
Will replace the current animation and run the new one Optional callback will be called when the animation is finished
Optional
cb: (err: null | Error) => unknownRuns the animation, replacing the current one
If the animation is already running, it will be stopped
You can pass an optional AbortSignal to cancel the animation at any time
Stops current animation
This class is responsible for running animations on a Blinkstick device. It handles the animation loop, applying frames to the device, and managing the animation state.
It's bound to a single Blinkstick device and can only run one animation at a time.