Jc3248w535 display - qspi_dbi / axs15231

I am trying to “convert” an ESPhome device using a st7789v display - to use a jc3248w535 display instead (spi_dbi / axs15231).

I am using a header file with some functions to create a grid/graph and print some text - which works without issues on the st7789v display…

Using the same code on the new display, things initially looks OK - but is then garbled/distorted after approx 10 seconds …

Any idea what could cause this ? It is built-in functions using to draw boxes, lines etc …

The AXS15231 has some specific requirements. There are some changes to the driver that are in dev but not yet released. If you use the Dev version it should work OK. Alternatively for now add draw_from_origin: true to the display config.

Using the dev version solved the graphics…

Also, the garbled text was probably caused by having auto_clear_enabled disabled… Changing that solved the issues I had :slight_smile:

The display update speed will be much better if you use LVGL instead of the ESPHome graphics functions. As you probably noticed turning on auto_clear slows things down a lot.

I have not yet found a way to build a graph the desired way using LVGL - so that the line changes color depending on the value of the “end-point” per hour (in a daily graph).
image
This is a graph of the electricity rates during the day - which was built in order to make it easier to identify when specific appliances should be started (washer, dryer etc)

Yeah, graphing is not implemented yet.