FastLED  3.1
led_sysdefs.h
1 #ifndef __INC_LED_SYSDEFS_H
2 #define __INC_LED_SYSDEFS_H
3 
4 #include "FastLED.h"
5 
6 #include "fastled_config.h"
7 
8 #if defined(NRF51) || defined(__RFduino__) || defined (__Simblee__)
9 #include "platforms/arm/nrf51/led_sysdefs_arm_nrf51.h"
10 #elif defined(__MK20DX128__) || defined(__MK20DX256__)
11 // Include k20/T3 headers
12 #include "platforms/arm/k20/led_sysdefs_arm_k20.h"
13 #elif defined(__MKL26Z64__)
14 // Include kl26/T-LC headers
15 #include "platforms/arm/kl26/led_sysdefs_arm_kl26.h"
16 #elif defined(__SAM3X8E__)
17 // Include sam/due headers
18 #include "platforms/arm/sam/led_sysdefs_arm_sam.h"
19 #elif defined(STM32F10X_MD)
20 #include "platforms/arm/stm32/led_sysdefs_arm_stm32.h"
21 #elif defined(__SAMD21G18A__) || defined(__SAMD21E17A__)
22 #include "platforms/arm/d21/led_sysdefs_arm_d21.h"
23 #elif defined(ESP8266)
24 #include "platforms/esp/8266/led_sysdefs_esp8266.h"
25 #else
26 // AVR platforms
27 #include "platforms/avr/led_sysdefs_avr.h"
28 #endif
29 
30 #ifndef FASTLED_NAMESPACE_BEGIN
31 #define FASTLED_NAMESPACE_BEGIN
32 #define FASTLED_NAMESPACE_END
33 #define FASTLED_USING_NAMESPACE
34 #endif
35 
36 // Arduino.h needed for convenience functions digitalPinToPort/BitMask/portOutputRegister and the pinMode methods.
37 #ifdef ARDUINO
38 #include<Arduino.h>
39 #endif
40 
41 #define CLKS_PER_US (F_CPU/1000000)
42 
43 #endif
contains definitions that can be used to configure FastLED at compile time
central include file for FastLED, defines the CFastLED class/object