Skip to main content
Dolence
Associate III
May 31, 2023
Question

How to make a new widget to show log text or data incoming through serial?

  • May 31, 2023
  • 1 reply
  • 1834 views

Please, someone could point me in the direction to make a widget to show logs or serial data on it?

Explaining it further, it should render multiple lines of data as it is being updated keeping an history of previously received data, breaking the lines as it exceeds the widget width or a line ending is received.

This would be ideal for showing logs or making a serial monitor on the screen which updates the data as it arrives (and which would look very nice with a monospaced font!).

YouTube video example


_legacyfs_online_stmicro_images_0693W00000blFtwQAE.png 

Any advice would be very appreciated. Thanks!

This topic has been closed for replies.

1 reply

Dolence
DolenceAuthor
Associate III
June 1, 2023

Enabling a second LTDC layer and writing directly to it would work? If it is possible, I could just do this and redirect the output of printf to that second layer. Is it feasible?