Fixed build
This commit is contained in:
parent
002ed86bc2
commit
30ce7f099d
68 changed files with 611 additions and 611 deletions
|
|
@ -437,22 +437,22 @@ void loop()
|
|||
|
||||
void drawMain()
|
||||
{
|
||||
if (u8g2) {
|
||||
u8g2->clearBuffer();
|
||||
u8g2->drawRFrame(0, 0, 128, 64, 5);
|
||||
if (disp) {
|
||||
disp->clearBuffer();
|
||||
disp->drawRFrame(0, 0, 128, 64, 5);
|
||||
|
||||
u8g2->setFont(u8g2_font_pxplusibmvga8_mr);
|
||||
u8g2->setCursor(22, 25);
|
||||
u8g2->print("TX:");
|
||||
u8g2->setCursor(22, 40);
|
||||
u8g2->print("STATE:");
|
||||
disp->setFont(u8g2_font_pxplusibmvga8_mr);
|
||||
disp->setCursor(22, 25);
|
||||
disp->print("TX:");
|
||||
disp->setCursor(22, 40);
|
||||
disp->print("STATE:");
|
||||
|
||||
u8g2->setFont(u8g2_font_crox1h_tr);
|
||||
u8g2->setCursor( U8G2_HOR_ALIGN_RIGHT(payload.c_str()) - 21, 25 );
|
||||
u8g2->print(payload);
|
||||
disp->setFont(u8g2_font_crox1h_tr);
|
||||
disp->setCursor( U8G2_HOR_ALIGN_RIGHT(payload.c_str()) - 21, 25 );
|
||||
disp->print(payload);
|
||||
String state = transmissionState == RADIOLIB_ERR_NONE ? "NONE" : String(transmissionState);
|
||||
u8g2->setCursor( U8G2_HOR_ALIGN_RIGHT(state.c_str()) - 21, 40 );
|
||||
u8g2->print(state);
|
||||
u8g2->sendBuffer();
|
||||
disp->setCursor( U8G2_HOR_ALIGN_RIGHT(state.c_str()) - 21, 40 );
|
||||
disp->print(state);
|
||||
disp->sendBuffer();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue