diff --git a/README.md b/README.md index 10d9573..4ed417e 100644 --- a/README.md +++ b/README.md @@ -380,10 +380,10 @@ light: .... on_turn_on: lambda: |- - id(rgb8x32)->set_enabled(false); + id(ehmtx_display)->set_enabled(false); on_turn_off: lambda: |- - id(rgb8x32)->set_enabled(true); + id(ehmtx_display)->set_enabled(true); ``` To hide the light component in home assistant use: `internal: true` diff --git a/tests/ehtmxv2-template.yaml b/tests/ehtmxv2-template.yaml index cf577cc..b4b6f49 100644 --- a/tests/ehtmxv2-template.yaml +++ b/tests/ehtmxv2-template.yaml @@ -43,6 +43,7 @@ esphome: id(rgb8x32)->rainbow_date_screen(30,5); id(rgb8x32)->blank_screen(30,5); id(rgb8x32)->set_brightness(20); + id(rgb8x32)->bitmap_screen("[31,31,31,63488,63488,63488,31,31,63488,31,31,31,31,31,63488,63488,63488,31,31,63488,63488,63488,63488,31,31,63488,31,31,31,63488,31,31,31,31,63488,31,31,31,63488,31,63488,31,31,31,31,63488,31,31,31,63488,31,63488,31,31,31,63488,31,63488,63488,31,63488,63488,31,31,31,31,63488,31,31,31,63488,31,63488,31,31,31,31,63488,31,31,31,63488,31,63488,31,31,31,63488,31,63488,31,63488,31,63488,31,31,31,31,63488,31,31,31,63488,31,63488,31,31,31,31,63488,31,31,31,63488,31,63488,31,31,31,63488,31,63488,31,31,31,63488,31,31,31,31,63488,63488,63488,63488,63488,31,63488,31,31,31,31,63488,63488,63488,63488,63488,31,63488,63488,63488,63488,31,31,63488,31,31,31,63488,31,31,31,31,63488,31,31,31,63488,31,63488,31,31,31,31,63488,31,31,31,63488,31,63488,31,63488,31,31,31,63488,31,31,31,63488,31,31,31,31,63488,31,31,31,63488,31,63488,31,31,31,31,63488,31,31,31,63488,31,63488,31,31,63488,31,31,63488,31,31,31,63488,31,31,31,31,63488,31,31,31,63488,31,63488,63488,63488,63488,31,63488,31,31,31,63488,31,63488,31,31,31,63488,31,63488,31,31,31,63488,31,31]",2,10); esp32: board: esp32dev