[Solved]M5Stickc Plus 2 - Screen Inactivity
-
Hello everyone
I am currently programming a clock on an M5Stickc Plus2, and I am using
M5.Lcd.fillScreen(TFT_BLACK);
to suspend the use of the screen and save battery, and when the home button is pressed I activate the screen by printing the time for 5 seconds but I see that the screen is still active since I am only projecting a black background, is there a way to turn off the screen? until a press of one of the buttons is generated.
Thank you all very much for the support you can offer me.
Greetings -
I found these methods in the documentation, but I still see that the screen does not turn off completely.
M5.Lcd.setBrightness(0);
M5.Lcd.sleep();M5.Lcd.wakeup();
M5.Lcd.setBrightness(200); -
I solved it as follows, in case anyone else has the same issue.
analogWrite(BACKLIGHT, 0); delay(20); StickCP2.Power.lightSleep();
greetings to all.