FastLED
3.9.15
Loading...
Searching...
No Matches
dll.h
Go to the documentation of this file.
1
#pragma once
2
5
6
#ifndef FASTLED_BUILD_EXPORTS
7
#define FASTLED_BUILD_EXPORTS 0
8
#endif
9
10
#if FASTLED_BUILD_EXPORTS
11
12
#include "
export.h
"
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
20
FASTLED_EXPORT
void
sketch_setup(
void
);
21
24
FASTLED_EXPORT
void
sketch_loop(
void
);
25
26
#ifdef __cplusplus
27
}
28
#endif
29
30
// ================================================================================================
31
// IMPLEMENTATIONS (when building FastLED as shared library)
32
// ================================================================================================
33
34
#ifdef FASTLED_LIBRARY_SHARED
35
36
#ifdef __cplusplus
37
// Forward declarations - provided by sketch
38
extern
void
setup
();
39
extern
void
loop
();
40
41
// Provide implementations for the exported functions
42
FASTLED_EXPORT
void
sketch_setup() {
43
setup
();
44
}
45
46
FASTLED_EXPORT
void
sketch_loop() {
47
loop
();
48
}
49
#endif
// __cplusplus
50
51
#endif
// FASTLED_LIBRARY_SHARED
52
53
#endif
// FASTLED_BUILD_EXPORTS
setup
void setup()
Definition
AdafruitBridge.ino:16
loop
void loop()
Definition
AdafruitBridge.ino:21
FASTLED_EXPORT
#define FASTLED_EXPORT
Definition
export.h:25
export.h
Cross-platform export macros for FastLED dynamic library support.
fl
dll.h
Generated on Fri Aug 22 2025 20:59:33 for FastLED by
1.13.2