@@ -546,7 +546,8 @@ void backlightInit();
|
||||
#else
|
||||
void backlightEnable(uint8_t dutyCycle = 0);
|
||||
#endif
|
||||
#define BACKLIGHT_LEVEL_MAX 100
|
||||
#define BACKLIGHT_LEVEL_MAX 100
|
||||
#define BACKLIGHT_FORCED_ON BACKLIGHT_LEVEL_MAX + 1
|
||||
#if defined(PCBX12S)
|
||||
#define BACKLIGHT_LEVEL_MIN 5
|
||||
#elif defined(RADIO_FAMILY_T16)
|
||||
|
||||
@@ -274,6 +274,7 @@ extern "C" {
|
||||
#define isBacklightEnabled() (PWM->PWM_CH_NUM[0].PWM_CDTY != 100)
|
||||
#define BACKLIGHT_ENABLE() backlightEnable()
|
||||
#define BACKLIGHT_DISABLE() backlightDisable()
|
||||
#define BACKLIGHT_FORCED_ON 101
|
||||
|
||||
// ADC driver
|
||||
#define NUM_POTS 3
|
||||
|
||||
@@ -660,6 +660,7 @@ void pwrResetHandler();
|
||||
void backlightInit();
|
||||
void backlightDisable();
|
||||
#define BACKLIGHT_DISABLE() backlightDisable()
|
||||
#define BACKLIGHT_FORCED_ON 101
|
||||
uint8_t isBacklightEnabled();
|
||||
#if !defined(__cplusplus)
|
||||
#define backlightEnable(...)
|
||||
|
||||
Reference in New Issue
Block a user