[X9D/X7D] FrSky splash is now an option

This commit is contained in:
Bertrand Songis
2016-12-11 21:05:29 +01:00
parent 4f47c13efc
commit 7b5dfd7de5
8 changed files with 45 additions and 2 deletions
+1
View File
@@ -441,6 +441,7 @@ void drawCheckBox(coord_t x, coord_t y, uint8_t value, LcdFlags attr);
extern const pm_uchar sticks[] PROGMEM;
void drawSplash();
void drawSecondSplash();
void drawScreenIndex(uint8_t index, uint8_t count, uint8_t attr);
void drawStick(coord_t centrex, int16_t xval, int16_t yval);
void drawPotsBars();
+16
View File
@@ -67,3 +67,19 @@ void drawSplash()
lcdRefresh();
}
#endif
#if defined(SPLASH_FRSKY)
const pm_uchar splashdata2[] PROGMEM = {
'S','F','S',0,
#include "bitmaps/128x64/splash_frsky.lbm"
'S','F','E',0 };
const pm_uchar * const splash2_lbm = splashdata2+4;
void drawSecondSplash()
{
lcdClear();
lcd_img(0, 0, splash2_lbm, 0, 0);
lcdRefresh();
}
#endif
+1
View File
@@ -69,6 +69,7 @@ extern uint8_t noHighlightCounter;
void drawCheckBox(coord_t x, coord_t y, uint8_t value, LcdFlags attr);
void drawSlider(coord_t x, coord_t y, uint8_t value, uint8_t max, uint8_t attr);
void drawSplash();
void drawSecondSplash();
void drawScreenIndex(uint8_t index, uint8_t count, uint8_t attr);
void drawVerticalScrollbar(coord_t x, coord_t y, coord_t h, uint16_t offset, uint16_t count, uint8_t visible);
void displayMenuBar(const MenuItem * menu, int index);
+15
View File
@@ -42,3 +42,18 @@ void drawSplash()
lcdRefresh();
}
#endif
#if defined(SPLASH_FRSKY)
const pm_uchar splashdata2[] PROGMEM = {
'S','F','S',0,
#include "bitmaps/212x64/splash_frsky.lbm"
'S','F','E',0 };
const pm_uchar * const splash2_lbm = splashdata2+4;
void drawSecondSplash()
{
lcdClear();
lcdDrawBitmap(0, 0, splash2_lbm);
lcdRefresh();
}
#endif