CovidBraceletPrj / CovidBracelet

Covid Bracelet Code for Zephyr OS
Apache License 2.0
14 stars 6 forks source link

Add support for PineTime smartwatch #11

Closed TobleMiner closed 3 years ago

TobleMiner commented 3 years ago

This set of commits adds support for the PineTime smartwatch from Pine64.

Supported features:

The PineTime is supported through a new Platform IO environment. This env pulls in an updated Zephyr OS, as well as an updated nordic HAL from my personal GitHub account. This is required to utilize mainline Zephyr PineTime support from v2.5.0-rc1 onwoards. Feel free to fork my repos and host them on this projects account. Additionally this PR pulls in the u8g2 display library as a dependency. U8g2 is 2-clause BSD licensed and should thus be compatible with the Apache 2.0 license of this project. U8g2 is required for drawing text on the PineTime's display. All options internal to Zephyr require a full display framebuffe, which is larger than the nRF52832's SRAM.

Please note that the PineTime has only 64kB of RAM. Thus storing any long term contact information in RAM is hardly possible. However, the onboard flash would provide more than enough space to store them. In my opinion utilizing the flash would be a good next step for Covid contact tracing on the PineTime.

This PR contains a lot of "fixup" style commits, please squash it before merging.

IMG_0491