MCPcopy Create free account
hub / github.com/FastLED/FastLED / stopFastLED

Function stopFastLED

src/platforms/wasm/compiler/index.ts:1043–1050  ·  view source on GitHub ↗

* Stops the FastLED animation loop (for external control) * @returns {Promise } Promise that resolves to true if stopped successfully, false otherwise

()

Source from the content-addressed store, hash-verified

1041 * @returns {Promise<boolean>} Promise that resolves to true if stopped successfully, false otherwise
1042 */
1043async function stopFastLED() {
1044 if (!fastLEDController) {
1045 console.error('FastLED controller not initialized');
1046 return false;
1047 }
1048 await fastLEDController.stopWithWorkerSupport();
1049 return true;
1050}
1051
1052/**
1053 * Toggles the FastLED animation loop

Callers

nothing calls this directly

Calls 2

stopWithWorkerSupportMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected