-
I am building a device that needs to show some basic info on the display, this info is not generated by GEM. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 Please, refer to this modification of Blink example (that loads context as soon as sketch starts) as a possible template of how to achieve desired behavior (modified lines denoted with Hope that helps! |
Beta Was this translation helpful? Give feedback.
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…