-
Notifications
You must be signed in to change notification settings - Fork 0
2.0 The First Self‐Coded Widget
Now that the foundation is set, it’s time to program a small widget on your own.
I thought a bit about what the goal should be.
There always seems to be demand for a more customized form of telemetry display.
Sometimes it’s the color, other times the font size, or even the background that users want to modify compared to the standard widget.
For example, I often find it a waste of space if only one value is displayed in a widget, and I like having more information per "frame."
This gave me the idea to develop a small widget for this chapter that can display two values in one frame, allowing the programmer to control color representation and add a bit of "graphics" to enhance the presentation.
Lothar also suggested that we make maximum and minimum values accessible via switch, and with that, the theme for Chapter 2 was found.
The goal is to develop a widget that fits into the small frame of the standard home screen and displays two lines.
The final result should look something like this:

Once you understand the basics of widget programming, it’s not a huge task to implement something like this on your own.
I hope that the topic of telemetry display is of broad interest.