-
-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
number of pages #114
Comments
yes, esp32 always has 12 pages |
I thought If |
hasp-lvgl has no concept of an empty page. All pages exist at all times and are available to create/delete objects whether you use them or not. |
It would be nice to differentiate somehow the pages containing meaningful objects, so that the end-user should not be presented with a page containing irrelevant objects or no objects at all (=empty). I thought this could be known automatically just by looking at the "page" property of all the objects, and take the highest number from there, which would be helpful on the HA side. That's all. |
You can now get/set the following attributes on a page object (e.g.
By default all pages cycle in a round-robbing fashion, but you can change this behaviour by adjusting the p1b0.prev=5 // go to page 5 instead of page 12
p5b0.next=1 // start back from page 1 This will cycle through page 1-5 only. |
How can this be set from jsonl? |
@dgomes also CC support has to be added as currently the component calls pages directly by number when next/prev |
if the firmware handles this I can remove page control altogether :) |
{"page":1,"id":0,"next":1,"prev":5,"back":3,"bg_color":"black"} |
This was implemented in 0.5.0 |
Works, thanks |
A quick note:
numPages
instatusupdate
is always 12, while I only defined 5 pages in my .jsonl file.The text was updated successfully, but these errors were encountered: