Can someone explain to me how I change the text on the display whit esp home

Can someone explain to me how I change the text on the display of my heltec? Whit esp home when I toggle a switch. I did try it in serverall whays but all that I try doesn’t work. If I put the text lines in the action section it give me a error. Whit use of platform from the display or not.
Is there a way to change the text if you use the switch? If you only use esp home.

I managed it.
It was so simple.
Just put if/else to display section.
If id(switch1). state {
it.print(64,32,)id(my_font1),TextAlign::BASELINE_CENTER, “ON”);
} else