mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-06 09:58:23 +02:00
0.8.76
* revert changes from yesterday regarding snprintf and its size #1410, #1411 * reduced cppcheck linter warnings significantly * try to improve ePaper (ghosting) #1107
This commit is contained in:
parent
c447049e84
commit
7c532ca1cc
23 changed files with 164 additions and 158 deletions
|
@ -67,7 +67,7 @@ void DisplayEPaper::refreshLoop() {
|
|||
case RefreshStatus::LOGO:
|
||||
_display->fillScreen(GxEPD_BLACK);
|
||||
_display->drawBitmap(0, 0, logo, 200, 200, GxEPD_WHITE);
|
||||
_display->display(false); // full update
|
||||
mSecondCnt = 2;
|
||||
mNextRefreshState = RefreshStatus::PARTITIALS;
|
||||
mRefreshState = RefreshStatus::WAIT;
|
||||
break;
|
||||
|
@ -79,11 +79,11 @@ void DisplayEPaper::refreshLoop() {
|
|||
break;
|
||||
|
||||
case RefreshStatus::WHITE:
|
||||
if(mSecondCnt == 0) {
|
||||
_display->fillScreen(GxEPD_WHITE);
|
||||
mNextRefreshState = RefreshStatus::PARTITIALS;
|
||||
mRefreshState = RefreshStatus::WAIT;
|
||||
}
|
||||
if(0 != mSecondCnt)
|
||||
break;
|
||||
_display->fillScreen(GxEPD_WHITE);
|
||||
mNextRefreshState = RefreshStatus::PARTITIALS;
|
||||
mRefreshState = RefreshStatus::WAIT;
|
||||
break;
|
||||
|
||||
case RefreshStatus::WAIT:
|
||||
|
@ -92,10 +92,13 @@ void DisplayEPaper::refreshLoop() {
|
|||
break;
|
||||
|
||||
case RefreshStatus::PARTITIALS:
|
||||
if(0 != mSecondCnt)
|
||||
break;
|
||||
headlineIP();
|
||||
versionFooter();
|
||||
mSecondCnt = 4; // display Logo time during boot up
|
||||
mRefreshState = RefreshStatus::DONE;
|
||||
mNextRefreshState = RefreshStatus::DONE;
|
||||
mRefreshState = RefreshStatus::WAIT;
|
||||
break;
|
||||
|
||||
default: // RefreshStatus::DONE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue