Lumitronix_Iflex_Pro_Workshop
Library to interact with the iFlexPro
NeoBusChannel.h
Go to the documentation of this file.
1 #pragma once
2 
3 // For those platforms/methods that support dynamic channel setting
4 //
5 // ESP32 - 8 TX channels
6 // ESP32S2 - 4 TX channels
7 // ESP32C3 - 2 TX channels
8 // ESP32S3 - 4 TX channels
9 // NRF52840 - 3 or 4 channels (some variants only have 3)
10 
12 {
15 
16 #if !defined(CONFIG_IDF_TARGET_ESP32C3)
17 
19 
20 // NRF52x has only 3 or 4 channels of PWM
21 #if defined(ARDUINO_ARCH_NRF52840)
22 
23 #if defined(NRF_PWM3)
24  NeoBusChannel_3,
25 #endif
26 
27 // ESP32 has either 8, 4, or 2 channels (S2 has only 4, C3 only 2)
28 #elif defined(ARDUINO_ARCH_ESP32)
29 
30  NeoBusChannel_3,
31 
32 #if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32S3)
33  NeoBusChannel_4,
34  NeoBusChannel_5,
35  NeoBusChannel_6,
36  NeoBusChannel_7,
37 #endif // !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32S3)
38 
39 #endif // !defined(CONFIG_IDF_TARGET_ESP32C3)
40 
41 #endif // ARDUINO_ARCH_ESP32
42 
44 };
NeoBusChannel
Definition: NeoBusChannel.h:12
@ NeoBusChannel_COUNT
Definition: NeoBusChannel.h:43
@ NeoBusChannel_1
Definition: NeoBusChannel.h:14
@ NeoBusChannel_0
Definition: NeoBusChannel.h:13
@ NeoBusChannel_2
Definition: NeoBusChannel.h:18