M5Stack Core Basic screen a white

Hello,

Im using an M5 Core Basic with esphome and at start the screen is all white.
I could make a Hello World text show putting back COLOR_ON and text color COLOR_OFF. This way the sceen is black with white text.
All other color do not work…

Any idea why?

Thanks!

Besides COLOR_ON and COLOR_OFF no other colors are defined…you need to define them yourself like:

color:
  - id: red
    red: 100%
    green: 0%
    blue: 0%

and use them like:

it.filled_rectangle(0, 0, 20, 20, id(red));