[TARANIS] Channel monitor 2nd page
This commit is contained in:
+11
-2
@@ -40,22 +40,31 @@ void menuChannelsView(uint8_t event)
|
|||||||
{
|
{
|
||||||
static bool longNames = false;
|
static bool longNames = false;
|
||||||
bool newLongNames = false;
|
bool newLongNames = false;
|
||||||
|
static bool secondPage = false;
|
||||||
|
uint8_t ch;
|
||||||
|
|
||||||
switch(event)
|
switch(event)
|
||||||
{
|
{
|
||||||
case EVT_KEY_BREAK(KEY_EXIT):
|
case EVT_KEY_BREAK(KEY_EXIT):
|
||||||
popMenu();
|
popMenu();
|
||||||
return;
|
return;
|
||||||
|
case EVT_KEY_FIRST(KEY_RIGHT):
|
||||||
|
case EVT_KEY_FIRST(KEY_LEFT):
|
||||||
|
secondPage = !secondPage;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(secondPage)
|
||||||
|
ch = 16;
|
||||||
|
else
|
||||||
|
ch = 0;
|
||||||
|
|
||||||
lcd_putsCenter(0*FH, CHANNELS_MONITOR);
|
lcd_putsCenter(0*FH, CHANNELS_MONITOR);
|
||||||
lcd_invert_line(0);
|
lcd_invert_line(0);
|
||||||
|
|
||||||
// Column separator
|
// Column separator
|
||||||
lcd_vline(LCD_W/2, FH, LCD_H-FH);
|
lcd_vline(LCD_W/2, FH, LCD_H-FH);
|
||||||
|
|
||||||
uint8_t ch = 0;
|
|
||||||
|
|
||||||
for (uint8_t col=0; col<2; col++) {
|
for (uint8_t col=0; col<2; col++) {
|
||||||
|
|
||||||
uint8_t x = col*LCD_W/2+1;
|
uint8_t x = col*LCD_W/2+1;
|
||||||
|
|||||||
Reference in New Issue
Block a user