Skip to content

Commit

Permalink
HASPmota haspmota.get_pages() to get the sorted list of pages (aren…
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hadinger authored and josef109 committed Nov 7, 2024
1 parent 007c655 commit a5e0c6f
Show file tree
Hide file tree
Showing 3 changed files with 981 additions and 946 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ All notable changes to this project will be documented in this file.
- SolaxX1 Meter mode (#22330)
- DALI inverted signal configuration using GPIO DALI RX_i/TX_i
- Experimental support for Shelly DALI Dimmer Gen3 (See template in file xdrv_75_dali.ino)
- HASPmota `haspmota.get_pages()` to get the sorted list of pages

### Breaking Changed

Expand Down
6 changes: 6 additions & 0 deletions lib/libesp32_lvgl/lv_haspmota/src/embedded/lv_haspmota.be
Original file line number Diff line number Diff line change
Expand Up @@ -2679,6 +2679,12 @@ class HASPmota
return self.lvh_pages[self.lvh_page_cur_idx]
end
#====================================================================
# return an array of all pages numbers
#====================================================================
def get_pages()
return self.pages_list_sorted(nil)
end
#====================================================================
# return the current page being parsed with JSONL as `lvh_page` object
#====================================================================
def get_page_cur_parsing()
Expand Down
Loading

0 comments on commit a5e0c6f

Please sign in to comment.