makes GPIO_PIN_RST optional for the sx1276
[ExpressLRS.git] / src / lib / LED / devLED.h
blob2d3a9022f3bf452a2db13c02b2725692d39ff1fc
1 #pragma once
3 #include "device.h"
5 #if defined(GPIO_PIN_LED_WS2812) && (GPIO_PIN_LED_WS2812 != UNDEF_PIN)
6 extern device_t RGB_device;
7 #define HAS_RGB
8 #endif
10 #if (defined(GPIO_PIN_LED) && (GPIO_PIN_LED != UNDEF_PIN)) \
11 || (defined(GPIO_PIN_LED_RED) && (GPIO_PIN_LED_RED != UNDEF_PIN)) \
12 || (defined(GPIO_PIN_LED_GREEN) && (GPIO_PIN_LED_GREEN != UNDEF_PIN)) \
13 || (defined(GPIO_PIN_LED_BLUE) && (GPIO_PIN_LED_BLUE != UNDEF_PIN))
14 extern device_t LED_device;
15 #define HAS_LED
16 #endif