FastLED 3.9.15
Loading...
Searching...
No Matches

◆ wasm_tests()

void wasm_tests ( )

Definition at line 5 of file wasm_test.h.

5 {
6#if FASTLED_USE_PROGMEM != 0
7#error "FASTLED_USE_PROGMEM should be 0 for WASM"
8#endif
9
10#if SKETCH_HAS_LARGE_MEMORY != 1
11#error "SKETCH_HAS_LARGE_MEMORY should be 1 for WASM"
12#endif
13
14#if SKETCH_HAS_HUGE_MEMORY != 1
15#error "SKETCH_HAS_HUGE_MEMORY should be 1 for WASM"
16#endif
17
18#if FASTLED_ALLOW_INTERRUPTS != 1
19#error "FASTLED_ALLOW_INTERRUPTS should be 1 for WASM"
20#endif
21
22#ifndef F_CPU
23#error "F_CPU should be defined for WASM"
24#endif
25
26// WASM should have a high F_CPU since it's not real hardware
27#if F_CPU < 1000000
28#error "WASM F_CPU should be reasonably high (not real hardware constraint)"
29#endif
30
31// Check WASM-specific defines
32#ifndef FASTLED_STUB_IMPL
33#error "FASTLED_STUB_IMPL should be defined for WASM"
34#endif
35
36#ifndef digitalPinToBitMask
37#error "digitalPinToBitMask should be defined for WASM"
38#endif
39}