mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2026-04-26 16:25:54 +03:00
[GH-ISSUE #1314] Next Page for extra options in Display #660
Labels
No labels
best of
bug
development
discussion
documentation
duplicate
feature request
help wanted
help wanted
improvement
pinned
pull-request
question
stale
translation
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/esp8266_deauther#660
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LmfaoHax on GitHub (Sep 24, 2020).
Original GitHub issue: https://github.com/SpacehuhnTech/esp8266_deauther/issues/1314
hello there
how can we define if there is more menu nodes so it goes to next page?
for example if i add a new option on the menu so they become 6 options but only 5 can be displayed (while my oled is big enough and configured if there would be more content ) ?
i can see there are somethings about this in void DisplayUI::drawMenu()
but cant figure which part is designed for this ( going to next page if there are more options than 5 )
int row = (currentMenu->selected / 4) * 5; // /5
i edited the above value to 4 to check if the clock would go to next page and it kinda works but the problem is that when it goes to next page its blank and i cant see "CLOCK" option
and the real situation is that im configuring this on a 0.91 OLED device and the last unsolved thing about is that i need to force it go to the next page after 4 options but i dont know where this is defined in your code
@ghost commented on GitHub (Sep 28, 2020):
Hi! As far as I understand you don't know how the display will behave if there are a lot of items. Since I don't know the Arduino programming language, but I think this will help you https://www.youtube.com/watch?v=N0s2Qmrsu4A .
This video is in Russian, but I think it will still help you!
@LmfaoHax commented on GitHub (Sep 28, 2020):
Thanks that video really helped me out to figure whats really going on an oled
i also figured out how we can define how many options we want to be displayed by adjusting the following part in DisplayUI.cpp
btw i needed this for my 0.91 oled heltec device which all adjusted code is available >here<