Esempio n. 1
0
void displayRssiLine()
{
  if (TELEMETRY_STREAMING()) {
    //lcd_hline(0, 55, 128, 0); // separator
    //uint8_t rssi = min((uint8_t)99, frskyData.rssi[1].value);
    //lcd_putsLeft(STATUS_BAR_Y, STR_TX); lcd_outdezNAtt(4*FW, STATUS_BAR_Y, rssi, LEADING0, 2);
    //lcd_rect(25, 57, 38, 7);
    //lcd_filled_rect(26, 58, 4*rssi/11, 5, (rssi < getRssiAlarmValue(0)) ? DOTTED : SOLID);
	//	uint8_t rssi = min((uint8_t)99, frskyData.rssi[0].value);
	//    lcd_putsAtt(0,STATUS_BAR_Y, PSTR("Signal"),0); lcd_outdezAtt(8*FW, STATUS_BAR_Y, rssi, 0);
	//	lcd_putsAtt(9*FW-5,STATUS_BAR_Y, PSTR("%"),0);
	//if (g_model.timers[0].mode) {										
    lcd_puts(0,STATUS_BAR_Y, PSTR("Time"));
	putsTime(6*FW+5*FWNUM+2, STATUS_BAR_Y, timersStates[0].val, 0, 0);
   // } 
	//lcd_rect(65, 57, 38, 7);
    //uint8_t v = 4*rssi/11;
    //lcd_filled_rect(66+36-v, 58, v, 5, (rssi < getRssiAlarmValue(0)) ? DOTTED : SOLID);
	lcd_putsAtt(11*FW-1,STATUS_BAR_Y, PSTR("TxBat"),0); putsVBat(20*FW+8,STATUS_BAR_Y,0);	
  }
  else {
    lcd_putsAtt(7*FW, STATUS_BAR_Y, STR_NODATA, BLINK);
    // lcd_status_line();
  }
}
Esempio n. 2
0
void displayBattVoltage()
{
#if defined(BATTGRAPH)
  putsVBat(VBATT_X-8, VBATT_Y+1, 0);
  drawFilledRect(VBATT_X-25, VBATT_Y+9, 22, 5);
  lcd_vline(VBATT_X-3, VBATT_Y+10, 3);
  uint8_t count = GET_TXBATT_BARS();
  for (uint8_t i=0; i<count; i+=2)
    lcd_vline(VBATT_X-24+i, VBATT_Y+10, 3);
  if (!IS_TXBATT_WARNING() || BLINK_ON_PHASE)
    drawFilledRect(VBATT_X-26, VBATT_Y, 25, 15);
#else
  LcdFlags att = (IS_TXBATT_WARNING() ? BLINK|INVERS : 0) | BIGSIZE;
  putsVBat(VBATT_X-1, VBATT_Y, att|NO_UNIT);
  lcd_putc(VBATT_X, VBATTUNIT_Y, 'V');
#endif
}