Widget to view serial output

What widget can I use to display the output of a serial?
Multiline view, of course.
A fairly “light” widget that therefore does not weigh down the CPU excessively.
Thanks.

Hi,
you can use lv_win (Window) widget to show terminal multiline text. The Window is container-like object built from a header with title and buttons and a content area.

The text area will display the contents of whatever buffer you pass to it. I suggest that you make your buffer a fixed size and shift the newer contents to the beginning when you run out of space to make more room. The exact mechanism you use to do that is not LittlevGL-specific.

for example youcould reference the example “lv_examples/lv_apps/terminal”.

Thanks hope it will help.

1 Like