Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
Go to file
2020-09-20 14:40:31 +02:00
.github/workflows Fix conflict 2020-07-25 16:11:35 +02:00
bootloader Updated boot graphic with a blue pinecone (Pine64 logo). 2020-09-20 14:31:56 +02:00
cmake-nRF5x Remove reference to NRF Softdevice in CMake and documentation. 2020-05-16 16:13:22 +02:00
doc Update links to Gadgetbridge, now that the support for Pinetime-JF/InfiniTime has been merge into the master branch. 2020-09-20 14:40:31 +02:00
docker Update to the latest version of the bootloader (https://github.com/lupyuen/pinetime-rust-mynewt/releases/tag/v5.0.4) 2020-09-20 11:29:56 +02:00
images Add InfiniTime logo. 2020-08-02 18:09:38 +02:00
src Call SpiNorFlash::WakeUp() during initialization to ensure that the chip is not is sleep mode. 2020-09-20 14:31:26 +02:00
.gitignore Added a few more folders to gitignore before they end up in the repository 2020-08-31 23:45:56 +03:00
CMakeLists.txt Docker post build : generate post build script with versions from the CMake project. 2020-09-08 22:15:10 +02:00
gcc_nrf52-mcuboot.ld Refactor CMake files to allow building 2 binaries : one standalone and one compatible with mcuboot bootloader (the offset in memory is different). 2020-05-24 16:36:04 +02:00
gcc_nrf52.ld Refactor CMake files to allow building 2 binaries : one standalone and one compatible with mcuboot bootloader (the offset in memory is different). 2020-05-24 16:36:04 +02:00
LICENSE Add LICENSE file and information. 2020-08-02 17:38:51 +02:00
nrf_common.ld Fix link error because of missing file "nrf_common.ld" 2020-01-12 16:26:20 +01:00
README.md Update links to Gadgetbridge, now that the support for Pinetime-JF/InfiniTime has been merge into the master branch. 2020-09-20 14:40:31 +02:00

PineTime

The PineTime is a free and open source smartwatch capable of running custom-built open operating systems. Some of the notable features include a heart rate monitor, a week-long battery as well as a capacitive touch IPS display that is legible in direct sunlight. It is a fully community driven side-project, which means that it will ultimately be up to the developers and end-users to determine when they deem the PineTime ready to ship.

We envision the PineTime as a companion for not only your PinePhone but also for your favorite devices — any phone, tablet, or even PC.

https://www.pine64.org/pinetime/

The Pinetime smartwatch is built around the NRF52832 MCU (512KB Flash, 64KB RAM), a 240*240 LCD display driven by the ST7789 controller, an accelerometer, a heart rate sensor, and a vibration motor.

InfiniTime

InfiniTime logo

The goal of this project is to design an open-source firmware for the Pinetime smartwatch :

Overview

Pinetime screens

As of now, here is the list of achievements of this project:

  • Fast and optimized LCD driver
  • BLE communication
  • Rich user interface via display, touchscreen and pushbutton
  • Time synchronization via BLE
  • Notification via BLE
  • Multiple 'apps' :
    • Clock (displays the date, time, battery level, BLE connection status, heart rate and step count)
    • Heart rate
    • Motion
    • System info (displays various info : BLE MAC, build date/time, uptime, version, ...)
    • Brightness (allows the user to configure the brightness of the display)
  • Supported by 2 companion apps (development is in progress):
  • [Experimental] OTA (Over-the-air) update via BLE
  • [Experimental] Bootloader based on MCUBoot

Documentation

Develop

Build, flash and debug

Contribute

API

Architecture and technical topics

Using the firmware

TODO - contribute

This project is far from being finished, and there are still a lot of things to do for this project to become a firmware usable by the general public.

Here a quick list out of my head of things to do for this project:

  • Improve BLE communication stability and reliability
  • Improve OTA and MCUBoot bootloader
  • Add more functionalities : Alarm, chronometer, configuration, activities, heart rate logging, games,...
  • Add more BLE functionalities : call notifications, agenda, configuration, data logging,...
  • Measure power consumption and improve battery life
  • Improve documentation, take better pictures and video than mine
  • Improve the UI
  • Create companion app for multiple OSes (Linux, Android, iOS) and platforms (desktop, ARM, mobile). Do not forget the other devices from Pine64 like the Pinephone and the Pinebook Pro.
  • Design a simple CI (preferably self-hosted and easy to reproduce).

Do not hesitate to clone/fork the code, hack it and create pull-requests. I'll do my best to review and merge them :)

Licenses

This project is released under the GNU General Public License version 3 or, at your option, any later version.

It integrates the following projects:

Credits

Im not working alone on this project. First, many people create PR for this projects. Then, there is the whole #pinetime community : a lot of people all around the world who are hacking, searching, experimenting and programming the Pinetime. We exchange our ideas, experiments and code in the chat rooms and forums.

Here are some people I would like to highlight:

  • Atc1441 : He works on an Arduino based firmware for the Pinetime and many other smartwatches based on similar hardware. He was of great help when I was implementing support for the BMA421 motion sensor and I²C driver.
  • Koen : Hes working on a firmware based on RiotOS. He integrated similar libs as me : NimBLE, LittleVGL,… His help was invaluable too!
  • Lup Yuen Lee : He is everywhere: he works on a Rust firmware, builds a MCUBoot based bootloader for the Pinetime, designs a Flutter based companion app for smartphones and writes a lot of articles about the Pinetime!

If you feel like you should appear on this list, just get in touch with me or submit a PR :)