Add a "PineBoy" watch face in a style of Fallout's PipBoy #1750
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The watch face includes everything that the Digital watch face provides and more. Most notably it makes a difference between "enabled", "disabled" and "paired" states of the Bluetooth. Next, it includes the battery charge as a text too.
This face tries to display a Pip Boy image from the flash memory. It searches for /imgs/pine-boy-icon.bin. If no such file is found then it displays a simple rectangle instead.
Note that the Pip Boy image is NOT included and users are expected to add it by themselves using the resources upload mechanism provided by companion apps.
This is how the face looks like when the a boy image has been uploaded
And here it is without one
And lastly, here's a photo of it running on an actual watch
Instructions For Adding An Icon
Find yourself the boy image you would want to display. A good resolution for an image would be 42x82px.
Then use
lv_img_conv
or the lvgl online convertor to convert it to a.bin
file. You have to use the color format "CF_TRUE_COLOR" or "CF_TRUE_COLOR_ALPHA" and output format "Binary RGB565 Swap".Then create a resource file which includes the converted image under the name
/imgs/pine-boy-icon.bin
. This is myresources.json
:And lastly use a companion app to send the the resource image to the watch. I've used Watchmate on my PinePhone and it works great.