Merge companion and firmware notes, and get them from the server (#5530)
[opentx.git] / radio / src / gui / 212x64 / splash.cpp
blob61889ad7eb8058efe9294a6078459a359fcf603e
1 /*
2 * Copyright (C) OpenTX
4 * Based on code named
5 * th9x - http://code.google.com/p/th9x
6 * er9x - http://code.google.com/p/er9x
7 * gruvin9x - http://code.google.com/p/gruvin9x
9 * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
21 #include "opentx.h"
23 #if defined(SPLASH)
24 const pm_uchar splashdata[] PROGMEM = {
25 'S','P','S',0,
26 #include "bitmaps/212x64/splash.lbm"
27 'S','P','E',0 };
28 const pm_uchar * const splash_lbm = splashdata+4;
30 void drawSplash()
32 lcdClear();
33 lcdDrawBitmap(0, 0, splash_lbm);
35 #if MENUS_LOCK == 1
36 if (readonly == false) {
37 lcdDrawFilledRect((LCD_W-(sizeof(TR_UNLOCKED)-1)*FW)/2 - 9, 50, (sizeof(TR_UNLOCKED)-1)*FW+16, 11, SOLID, ERASE|ROUND);
38 lcdDrawText((LCD_W-(sizeof(TR_UNLOCKED)-1)*FW)/2 , 53, STR_UNLOCKED);
40 #endif
42 lcdRefresh();
44 #endif
46 #if defined(SPLASH_FRSKY)
47 const pm_uchar splashdata2[] PROGMEM = {
48 'S','F','S',0,
49 #include "bitmaps/212x64/splash_frsky.lbm"
50 'S','F','E',0 };
51 const pm_uchar * const splash2_lbm = splashdata2+4;
53 void drawSecondSplash()
55 lcdClear();
56 lcdDrawBitmap(0, 0, splash2_lbm);
57 lcdRefresh();
59 #endif