How do I change the maximum value of the slider

Important: posts that do not use this template will be ignored or closed.

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 relevant part of the documentation. We will not respond in detail to posts where you haven’t read the relevant documentation.
  • If applicable use the Simulator to eliminate hardware related issues.

Delete this section if you read and applied the mentioned points.

Description

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

What LVGL version are you using?

7.6

What do you want to achieve?

I want to change the maximum value of the slider to 86400, but it only has two bytes and can only be set to around 20000

What have you tried so far?

Changed the value type of the slider, but to no avail

Code to reproduce

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.

As you’ve noted the slider uses a 16-bit signed integer to store its value, thus it’ll be impossible to make the maximum value 86400. The maximum you can have will be roughly 32767.

How are you expecting a user to adjust the slider if it has 86400 possible values?

因为我想用滑块来计算24小时,