Well, this is part of the addressable light component and the pixel_mapper option. You have to try it by your self. As a startingpoint take a look at this code sample:
display:
- platform: addressable_light
id: ehmtx_display
addressable_light_id: ehmtx_light
width: 32
height: 8
pixel_mapper: |-
if (x % 2 == 0) {
return (x * 8) + y;
}
return (x * 8) + (7 - y);
rotation: 0°
update_interval: 16ms
auto_clear_enabled: true
lambda: |-
it.line(0, 0, 3, 0);
it.line(8,0,11,0);
it.line(16,0,19,0);
// id(rgb8x32)->tick();
// id(rgb8x32)->draw();
with the right pixel_mapper it should look like this:
