-
I need help to understand writecommand() possibilities inside LovyanGFX. What I have is: void display_sleep()
{
if (display_state)
{
display.log(LOG_LEVEL_INFO, "Display entrou em suspensão");
display_state = false;
gfx.writecommand(0x10);
display_pin.off();
}
}
void display_wakeup()
{
if (!display_state)
{
display.log(LOG_LEVEL_INFO, "Display retornou em atividade");
display_state = true;
gfx.writecommand(0x11);
display_pin.on();
}
} The same code using TFT_eSPI results in something like a suspended display after display_sleep(), and than turn back by display_wakeup(). In Lovyan is kinda the same, but instead of complete suspend display, just the brightness is reduced... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Already figure it out! There are two simple functions to do what I'm trying to do with writecommand(): hope this helps someone in future :) |
Beta Was this translation helpful? Give feedback.
Already figure it out!
There are two simple functions to do what I'm trying to do with writecommand():
sleep() and wakeup(), they do exactly what the commands for TFT_eSPI do!
hope this helps someone in future :)