Tasmota/lib/lib_basic/NeoPixelBus/src/internal/NeoBusChannel.h
Jason2866 e98deea633
Neopixel C3
Latest NeoPixel (09062021) branch master
2021-06-09 20:23:59 +02:00

30 lines
607 B
C

#pragma once
// For those platforms/methods that support dynamic channel setting
enum NeoBusChannel
{
NeoBusChannel_0,
NeoBusChannel_1,
NeoBusChannel_2,
// NRF52x has only 3 or 4 channels of PWM
#if defined(ARDUINO_ARCH_NRF52840)
#if defined(NRF_PWM3)
NeoBusChannel_3
#endif
// ESP32 has either 8 or 4 channels (S2 has only 4)
#elif defined(ARDUINO_ARCH_ESP32)
NeoBusChannel_3,
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
NeoBusChannel_4,
NeoBusChannel_5,
NeoBusChannel_6,
NeoBusChannel_7,
#endif
#endif // ARDUINO_ARCH_ESP32
};