[Horus] Fixes. ADC + Switches + Trims + RTC OK

This commit is contained in:
Bertrand Songis
2016-01-08 22:21:26 +01:00
parent 685dece185
commit 82a4ad4103
43 changed files with 402 additions and 398 deletions
+14 -3
View File
@@ -24,10 +24,21 @@ const pm_uchar bmp_sleep[] PROGMEM = {
#include "../../bitmaps/taranis/sleep.lbm"
};
void displaySleepBitmap()
void drawSleepBitmap()
{
lcdClear();
lcd_bmp(76, 2, bmp_sleep, 0, 60);
lcdDrawBitmap(76, 2, bmp_sleep, 0, 60);
lcdRefresh();
}
const pm_uchar bmp_shutdown[] PROGMEM = {
#include "../../bitmaps/taranis/shutdown.lbm"
};
void drawShutdownBitmap(uint8_t index)
{
lcdClear();
lcdDrawBitmap(76, 2, bmp_shutdown, index * 60, 60);
lcdRefresh();
}
@@ -58,7 +69,7 @@ void menu_lcd_onoff(coord_t x, coord_t y, uint8_t value, LcdFlags attr)
lcdDrawSquare(x, y, 7);
}
void displayScreenIndex(uint8_t index, uint8_t count, uint8_t attr)
void drawScreenIndex(uint8_t index, uint8_t count, uint8_t attr)
{
lcdDrawNumber(LCD_W, 0, count, attr);
coord_t x = 1+LCD_W-FW*(count>9 ? 3 : 2);