auto init display

This commit is contained in:
Siwat Sirichai 2024-03-30 22:41:21 +07:00
parent 9725a8d867
commit 84d20173ac
2 changed files with 11 additions and 0 deletions

View file

@ -928,4 +928,14 @@ void InternalDisplay::setBootStatus(const char *text)
this->displayAdapter->print("\"");
this->sendStopBytes();
this->giveSerialMutex();
}
void InternalDisplay::handlePayload(uint8_t type, uint8_t *payload, uint8_t length) {
// If payload of type 0x92 is received
// Send the display to page 1
if (type == 0x92)
{
this->jumpToPage(1);
}
}