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

Function __fastledLoadSetupLoop

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

* Internal function to start FastLED with loaded module (Asyncify-enabled) * @async * @param {Object} moduleInstance - The loaded WASM module instance * @param {number} frameRate - Target frame rate for animations * @param {Array } filesJson - Files to load into virtual filesystem

(moduleInstance, frameRate, filesJson)

Source from the content-addressed store, hash-verified

846 * @param {Array<Object>} filesJson - Files to load into virtual filesystem
847 */
848 async function __fastledLoadSetupLoop(moduleInstance, frameRate, filesJson) {
849 const exports_exist = moduleInstance && moduleInstance._extern_setup
850 && moduleInstance._extern_loop;
851 if (!exports_exist) {
852 console.error('FastLED setup or loop functions are not available.');
853 return;
854 }
855
856 await fastledLoadSetupLoop(
857 frameRate,
858 moduleInstance,
859 filesJson,
860 );
861 }
862 // Start fetch now in parallel
863
864 /**

Callers 1

onModuleLoadedFunction · 0.85

Calls 2

fastledLoadSetupLoopFunction · 0.85
errorMethod · 0.45

Tested by

no test coverage detected