Browse Source

t114 display : some fixes

pull/237/head
Florent de Lamotte 1 year ago
parent
commit
05254bd67b
  1. 5
      examples/companion_radio/UITask.cpp
  2. 3
      src/helpers/ui/ST7789Display.cpp
  3. 1
      variants/t114/variant.cpp

5
examples/companion_radio/UITask.cpp

@ -106,6 +106,7 @@ void UITask::renderCurrScreen() {
_display->setColor(DisplayDriver::ORANGE);
sprintf(tmp, "%d", _msgcount);
_display->print(tmp);
_display->setColor(DisplayDriver::YELLOW); // last color will be kept on T114
} else {
// render 'home' screen
_display->setColor(DisplayDriver::BLUE);
@ -120,6 +121,7 @@ void UITask::renderCurrScreen() {
_display->print(_version_info);
if (_connected) {
_display->setColor(DisplayDriver::BLUE);
//_display->printf("freq : %03.2f sf %d\n", _prefs.freq, _prefs.sf);
//_display->printf("bw : %03.2f cr %d\n", _prefs.bw, _prefs.cr);
} else if (_pin_code != 0) {
@ -128,6 +130,9 @@ void UITask::renderCurrScreen() {
_display->setCursor(0, 43);
sprintf(tmp, "Pin:%d", _pin_code);
_display->print(tmp);
_display->setColor(DisplayDriver::GREEN);
} else {
_display->setColor(DisplayDriver::LIGHT);
}
}
_need_refresh = false;

3
src/helpers/ui/ST7789Display.cpp

@ -17,7 +17,8 @@ bool ST7789Display::begin() {
display.init();
display.landscapeScreen();
display.displayOn();
setCursor(0,0);
_isOn = true;
}
return true;

1
variants/t114/variant.cpp

@ -11,4 +11,5 @@ const uint32_t g_ADigitalPinMap[] = {
void initVariant()
{
pinMode(PIN_USER_BTN, INPUT);
}

Loading…
Cancel
Save