Skip to content
Discussion options

You must be logged in to vote

I have created a C-Code example here (transfer to Arduino C++ should be easy): https://github.com/olikraus/u8g2/blob/master/sys/sdl/mui_static_pages/main.c

The basic idea is to have two different event loops:

  • One normal event loop for password input (and any other selectable fields)
  • One special event loop for the static displays

The normal event loop should look like this:

if ( k == 'n' )
mui_NextField(&ui);
if ( k == 'p' )
mui_PrevField(&ui);
if ( k == 's' )
mui_SendSelect(&ui);

The special event loop will be called if any of the static pages is visible (in this case: if the form…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by SergeTauger
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants