t114 display : some fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -17,7 +17,8 @@ bool ST7789Display::begin() {
|
||||
display.init();
|
||||
display.landscapeScreen();
|
||||
display.displayOn();
|
||||
|
||||
setCursor(0,0);
|
||||
|
||||
_isOn = true;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -11,4 +11,5 @@ const uint32_t g_ADigitalPinMap[] = {
|
||||
|
||||
void initVariant()
|
||||
{
|
||||
pinMode(PIN_USER_BTN, INPUT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user