(Go: >> BACK << -|- >> HOME <<)

Skip to content

How to enter to and exit from GEM menus? #95

Answered by Spirik
MiqViq asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @MiqViq!

Recommended way to achieve this is through the use of Context. Normally context represents some functionality of the sketch outside of GEM (often it is actually the main functionality of the sketch). Usually user can load this context (i.e. run functionality) by pressing some button in menu. However in our case context should be loaded as soon as sketch starts. (And then it can be exited to GEM menu by press of the button - default GEM_KEY_CANCEL or by any other means implemented in context's loop routine as required by the author of the sketch).

Please, refer to this modification of Blink example (that loads context as soon as sketch starts) as a possible template of how to a…

Replies: 1 comment

Comment options

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