Minimum messages code? #5778
Replies: 1 comment
-
Posted at 2023-03-16 by @gfwilliams Personally, I'd just edit But you can I believe just write code like:
Maybe others that have actually done this can jump in though? Posted at 2023-03-16 by rigrig Yes, if you put that code in a boot file it should work, except you also want to check that
The messages library README has some example code using Posted at 2023-03-23 by gfric Thank you.
and I want to show a scrolling message, I need a timeout for the redraw, and a variable holding the current scroll position.
Now, when I exit this code, by calling load(), will the global variables 'scrollPosition' etc. be freed from memory? Posted at 2023-03-24 by @gfwilliams
Yes -
Yes, if they are truly global variables. You can always do:
Yes
If it's a module, the scope is in the module, not global. Posted at 2023-03-24 by gfric Many thanks. Now I understand it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2023-03-16 by gfric
What is the bare minimum code required to show a message from Gadgetbridge?
My eyes are too bad for reading the messages ui app. So I made a large font 2 line scroller that scrolls the message text two times and keeps the touch screen active. When you touch it, the clock loads.
Very simple. But, how would I get notified about a new message?
Beta Was this translation helpful? Give feedback.
All reactions