[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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login