FastLED 3.9.15
Loading...
Searching...
No Matches
wasm_test.h
Go to the documentation of this file.
1#pragma once
2
3#include "FastLED.h"
4
5void wasm_tests() {
6#if FASTLED_USE_PROGMEM != 0
7#error "FASTLED_USE_PROGMEM should be 0 for WASM"
8#endif
9
10#if SKETCH_HAS_LOTS_OF_MEMORY != 1
11#error "SKETCH_HAS_LOTS_OF_MEMORY should be 1 for WASM"
12#endif
13
14#if FASTLED_ALLOW_INTERRUPTS != 1
15#error "FASTLED_ALLOW_INTERRUPTS should be 1 for WASM"
16#endif
17
18#ifndef F_CPU
19#error "F_CPU should be defined for WASM"
20#endif
21
22// WASM should have a high F_CPU since it's not real hardware
23#if F_CPU < 1000000
24#error "WASM F_CPU should be reasonably high (not real hardware constraint)"
25#endif
26
27// Check WASM-specific defines
28#ifndef FASTLED_STUB_IMPL
29#error "FASTLED_STUB_IMPL should be defined for WASM"
30#endif
31
32#ifndef digitalPinToBitMask
33#error "digitalPinToBitMask should be defined for WASM"
34#endif
35}
central include file for FastLED, defines the CFastLED class/object
void wasm_tests()
Definition wasm_test.h:5