Fluctuating demo number

Description

 Floating numbers Demo purposes.

What MCU/Processor/Board and compiler are you using?

    ESP32 S3 Development Board with integrated LCD

What LVGL version are you using?

    V8.3.6

What do you want to achieve?

     I want to create a floating fluctuating number increment moving between 25-30 °C  EXAMPLE: 
     just a demo in the exported Square Line Studio files ect. ui.c, ui.h, ui_events.c, ui_events.h, 
     ui_helpers.c, ui_helpers.h

What have you tried so far?

   I managed to create fluctuate temps in the code I provided but this only works through porting upload if you edit the INO in Arduino IDE.

Code to reproduce

/ /* Create a label for displaying temperature */
lv_obj_t *temp_label = lv_label_create(lv_scr_act());
lv_label_set_text_fmt(temp_label, “Battery: %d °C”, 25); // Set an initial temperature value
lv_obj_align(temp_label, LV_ALIGN_CENTER, -220, -90); // Adjust the alignment as needed

/* Style the temperature label */
lv_obj_set_style_text_font(temp_label, &lv_font_montserrat_32, LV_PART_MAIN);
lv_obj_set_style_text_color(temp_label, lv_color_make(0xFF, 0x00, 0x00), LV_PART_MAIN);  // Red color for temperature

/* Create additional labels for displaying temperature */
lv_obj_t *temp_label_2 = lv_label_create(lv_scr_act());
lv_label_set_text_fmt(temp_label_2, "Battery: %d °C", 27);  // Set an initial temperature value
lv_obj_align(temp_label_2, LV_ALIGN_CENTER, -220, -55);  // Adjust the alignment as needed
lv_obj_set_style_text_font(temp_label_2, &lv_font_montserrat_32, LV_PART_MAIN);
lv_obj_set_style_text_color(temp_label_2, lv_color_make(0x00, 0xFF, 0x00), LV_PART_MAIN);  // Lime Green color

lv_obj_t *temp_label_3 = lv_label_create(lv_scr_act());
lv_label_set_text_fmt(temp_label_3, "Battery: %d °C", 23);
lv_obj_align(temp_label_3, LV_ALIGN_CENTER, -220, -20);
lv_obj_set_style_text_font(temp_label_3, &lv_font_montserrat_32, LV_PART_MAIN);
lv_obj_set_style_text_color(temp_label_3, lv_color_make(0x00, 0x00, 0xFF), LV_PART_MAIN);  // Blue color

lv_obj_t *temp_label_4 = lv_label_create(lv_scr_act());
lv_label_set_text_fmt(temp_label_4, "Battery: %d °C", 25.5);
lv_obj_align(temp_label_4, LV_ALIGN_CENTER, -220, 20);
lv_obj_set_style_text_font(temp_label_4, &lv_font_montserrat_32, LV_PART_MAIN);
lv_obj_set_style_text_color(temp_label_4, lv_color_make(0xFF, 0xFF, 0x00), LV_PART_MAIN);  // Yellow color

// Additional labels
lv_obj_t *temp_label_5 = lv_label_create(lv_scr_act());
lv_label_set_text_fmt(temp_label_5, "Asset Temperature");
lv_obj_align(temp_label_5, LV_ALIGN_CENTER, 0, -200);
lv_obj_set_style_text_font(temp_label_5, &lv_font_montserrat_40, LV_PART_MAIN);
lv_obj_set_style_text_color(temp_label_5, lv_color_make(0xFF, 0x00, 0xFF), LV_PART_MAIN);  // Magenta color

lv_obj_t *temp_label_6 = lv_label_create(lv_scr_act());
lv_label_set_text_fmt(temp_label_6, "Battery: %d °C", 28.5);
lv_obj_align(temp_label_6, LV_ALIGN_CENTER, -220, 60);
lv_obj_set_style_text_font(temp_label_6, &lv_font_montserrat_32, LV_PART_MAIN);
lv_obj_set_style_text_color(temp_label_6, lv_color_make(0x00, 0xFF, 0xFF), LV_PART_MAIN);  // Cyan color

lv_obj_t *temp_label_7 = lv_label_create(lv_scr_act());
lv_label_set_text_fmt(temp_label_7, "Battery: %d °C", 22.5);
lv_obj_align(temp_label_7, LV_ALIGN_CENTER, -220, 100);
lv_obj_set_style_text_font(temp_label_7, &lv_font_montserrat_32, LV_PART_MAIN);
lv_obj_set_style_text_color(temp_label_7, lv_color_make(0xFF, 0xFF, 0xFF), LV_PART_MAIN);  // White color

lv_obj_t *temp_label_8 = lv_label_create(lv_scr_act());
lv_label_set_text_fmt(temp_label_8, "Battery: %d °C", 24.5);
lv_obj_align(temp_label_8, LV_ALIGN_CENTER, -220, 140);
lv_obj_set_style_text_font(temp_label_8, &lv_font_montserrat_32, LV_PART_MAIN);
lv_obj_set_style_text_color(temp_label_8, lv_color_make(0x80, 0x80, 0x80), LV_PART_MAIN);  // Gray color

lv_example_qrcode_1();

/* Release the mutex */
lvgl_port_unlock();

Serial.println("Setup done");

}

void loop()
{
// Simulate changing temperature values
static float temperature = 25.0;
temperature += 0.1;
if (temperature > 30.0)
{
temperature = 25.0;
}

// Update temperature labels
lvgl_port_lock(-1);

char temp_str[20];

snprintf(temp_str, sizeof(temp_str), "Battery: %.0f °C", temperature);
lv_label_set_text(lv_obj_get_child(lv_scr_act(), 1), temp_str);

snprintf(temp_str, sizeof(temp_str), "Battery: %.0f °C", temperature + 2.5);
lv_label_set_text(lv_obj_get_child(lv_scr_act(), 2), temp_str);

snprintf(temp_str, sizeof(temp_str), "Battery: %.0f °C", temperature - 4.0);
lv_label_set_text(lv_obj_get_child(lv_scr_act(), 3), temp_str);

snprintf(temp_str, sizeof(temp_str), "Battery: %.0f °C", temperature + 0.5);
lv_label_set_text(lv_obj_get_child(lv_scr_act(), 4), temp_str);

snprintf(temp_str, sizeof(temp_str), "Battery: %.0f °C", temperature + 2.5);
lv_label_set_text(lv_obj_get_child(lv_scr_act(), 6), temp_str);

snprintf(temp_str, sizeof(temp_str), "Battery: %.0f °C", temperature - 4.0);
lv_label_set_text(lv_obj_get_child(lv_scr_act(), 7), temp_str);

snprintf(temp_str, sizeof(temp_str), "Battery: %.0f °C", temperature + 0.5);
lv_label_set_text(lv_obj_get_child(lv_scr_act(), 8), temp_str);

lvgl_port_unlock();

lv_task_handler(); // Add lv_task_handler to handle LVGL tasks
vTaskDelay(pdMS_TO_TICKS(85)); // Delay for 1 second/

## Screenshot and/or video
If possible, add screenshots and/or videos about the current state.