I am trying to make the print text blink on esphome connected to an ili9341. I am using the below codes. Can someone please help me with the code to make the text blink in any of the print functions?
- platform: ili9341
model: TFT 2.4
cs_pin: GPIO15
dc_pin: GPIO2
led_pin: GPIO1
reset_pin: GPIO4
rotation: 270
id: my_display
pages:
- id: page1
lambda: |-
if(id(countdown).state == "Match in progress") {
it.printf(20, 160, id(digitalsmall), id(my_red), TextAlign::TOP, "%s", id(countdown).state.c_str());
}
else {
it.printf(20, 200, id(comforta), id(my_white), TextAlign::TOP, "%s", id(daymatch).state.c_str());
it.printf(80, 140, id(digital), id(my_white), TextAlign::TOP, "%s", id(countdown).state.c_str());
}