issue #1525 initInterface for C++

This commit is contained in:
kraus 2021-08-01 11:58:57 +02:00
parent 35ba39fda7
commit 75b9513a06
2 changed files with 10 additions and 0 deletions

View File

@ -112,6 +112,11 @@ class U8G2 : public Print
void initDisplay(void) {
u8g2_InitDisplay(&u8g2); }
/* call initInterface if the uC comes out of deep sleep mode and display is already running */
/* initInterface is part if initDisplay, do not call both use either initDisplay OR initInterface */
void initInterface(void) {
u8g2_InitInterface(&u8g2); }
void clearDisplay(void) {
u8g2_ClearDisplay(&u8g2); }

View File

@ -210,6 +210,11 @@ class U8X8 : public Print
void initDisplay(void) {
u8x8_InitDisplay(&u8x8); }
/* call initInterface if the uC comes out of deep sleep mode and display is already running */
/* initInterface is part if initDisplay, do not call both use either initDisplay OR initInterface */
void initInterface(void) {
u8x8_InitInterface(&u8x8); }
void clearDisplay(void) {
u8x8_ClearDisplay(&u8x8); }