1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-14 20:10:08 +03:00

[X9D] Bootloader had no backlight

This commit is contained in:
Bertrand Songis 2019-08-22 12:31:03 +02:00
parent 9cac645a2b
commit b0e545bcaa
No known key found for this signature in database
GPG key ID: F189F79290FEC50F
3 changed files with 8 additions and 5 deletions

View file

@ -244,6 +244,7 @@ int main()
lcdInit();
backlightInit();
backlightEnable();
#if defined(PCBTARANIS)
i2cInit();

View file

@ -498,8 +498,8 @@ void lcdSetContrast();
#define lcdRefreshWait(...)
// Backlight driver
void backlightInit(void);
#if defined(SIMU)
void backlightInit();
#if defined(SIMU) || !defined(__cplusplus)
#define backlightEnable(...)
#else
void backlightEnable(uint8_t dutyCycle);

View file

@ -625,11 +625,13 @@ void backlightInit();
void backlightDisable();
#define BACKLIGHT_DISABLE() backlightDisable()
uint8_t isBacklightEnabled();
#if defined(PCBX9E) || defined(PCBX9DP)
void backlightEnable(uint8_t level, uint8_t color);
#if !defined(__cplusplus)
#define backlightEnable(...)
#elif defined(PCBX9E) || defined(PCBX9DP)
void backlightEnable(uint8_t level = 0, uint8_t color = 0);
#define BACKLIGHT_ENABLE() backlightEnable(g_eeGeneral.backlightBright, g_eeGeneral.backlightColor)
#else
void backlightEnable(uint8_t level);
void backlightEnable(uint8_t level = 0);
#define BACKLIGHT_ENABLE() backlightEnable(g_eeGeneral.backlightBright)
#endif