Important: unclear posts may not receive useful answers.
Before posting
- Get familiar with Markdown to format and structure your post
- Be sure to update lvgl from the latest version from the
master
branch.- Be sure you have checked the FAQ and read the relevant part of the documentation.
- If applicable use the Simulator to eliminate hardware related issues.
Delete this section if you read and applied the mentioned points.
Description
I have data coming over the serial port in the loop function. I want to display some of this changing data on one screen and the other changing data on the other screen.
I jump between screens using a button on the main screen for each screen. Main screen selecting tow other screens…
What MCU/Processor/Board and compiler are you using?
ESP32-S3 custom 5 inch 16bit RGB display. Arduino IDE
What LVGL version are you using?
LVGL 8.4
What do you want to achieve?
Display live changing data from the serial port on both screens when I select them.
What have you tried so far?
Getting the active screen and sending data to a label on the screen. I need to find out how to get the active screen and write to the label on this screen when I move to the screen via a button press to open this screen…
An example would be very helpful.
Code to reproduce
My current code is very long and just looking for a simple example on how to do what I need.
Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.
The code block(s) should be formatted like:
/*You code here*/
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.