* 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)
| 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 | /** |
no test coverage detected