Skip to content

Commit 7a6cead

Browse files
authored
Update documentation (#467)
* Fix and update documentation * Add newlines
1 parent ec2469a commit 7a6cead

2 files changed

Lines changed: 46 additions & 29 deletions

File tree

README.md

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# PineTime
32

43
[![Build PineTime Firmware](https://github.com/JF002/InfiniTime/workflows/Build%20PineTime%20Firmware/badge.svg?branch=master)](https://github.com/JF002/InfiniTime/actions)
@@ -12,9 +11,10 @@
1211
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.
1312

1413
# InfiniTime
14+
1515
![InfiniTime logo](images/infinitime-logo.jpg "InfiniTime Logo")
1616

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

1919
- Code written in **modern C++**;
2020
- Build system based on **CMake**;
@@ -36,7 +36,7 @@ As of now, here is the list of achievements of this project:
3636
- Heart rate measurements
3737
- Step counting
3838
- Wake-up on wrist rotation
39-
- Quick actions
39+
- Quick actions
4040
* Disable vibration on notification
4141
* Brightness settings
4242
* Flashlight
@@ -46,20 +46,22 @@ As of now, here is the list of achievements of this project:
4646
* Analog
4747
* [PineTimeStyle](https://wiki.pine64.org/wiki/PineTimeStyle)
4848
- Multiple 'apps' :
49-
* Music (control the playback of the music on your phone)
50-
* Heart rate (controls the heart rate sensor and display current heartbeat)
49+
* Music (control the playback of music on your phone)
50+
* Heart rate (measure your heart rate)
5151
* Navigation (displays navigation instructions coming from the companion app)
5252
* Notification (displays the last notification received)
5353
* Paddle (single player pong-like game)
54-
* Two (2048 clone game)
55-
* Stopwatch (with all the necessary functions such as play, pause, lap, stop)
56-
* Motion sensor and step counter (displays the number of steps and the state of the motion sensor in real-time)
54+
* Twos (2048 clone game)
55+
* Stopwatch
56+
* Steps (displays the number of steps taken)
57+
* Timer (set a countdown timer that will notify you when it expires)
5758
* Metronome (vibrates to a given bpm with a customizable beats per bar)
5859
- User settings:
5960
* Display timeout
6061
* Wake-up condition
6162
* Time format (12/24h)
6263
* Default watch face
64+
* Daily step goal
6365
* Battery status
6466
* Firmware validation
6567
* System information
@@ -70,18 +72,21 @@ As of now, here is the list of achievements of this project:
7072
* **[Experimental]** [WebBLEWatch](https://hubmartin.github.io/WebBLEWatch/) Synchronize time directly from your web browser. [video](https://youtu.be/IakiuhVDdrY)
7173
- OTA (Over-the-air) update via BLE
7274
- [Bootloader](https://github.com/JF002/pinetime-mcuboot-bootloader) based on [MCUBoot](https://juullabs-oss.github.io/mcuboot/)
73-
75+
7476
## Documentation
7577

7678
### Getting started
79+
7780
- [Getting started with InfiniTime 1.0 (quick user guide, update bootloader and InfiniTime,...)](doc/gettingStarted/gettingStarted-1.0.md)
7881
- [Flash, upgrade (OTA), time synchronization,...](doc/gettingStarted/ota-gadgetbridge-nrfconnect.md)
7982

8083
### Develop
84+
8185
- [Generate the fonts and symbols](src/displayapp/fonts/README.md)
8286
- [Creating a stopwatch in Pinetime(article)](https://pankajraghav.com/2021/04/03/PINETIME-STOPCLOCK.html)
8387

8488
### Build, flash and debug
89+
8590
- [Project branches](doc/branches.md)
8691
- [Versioning](doc/versioning.md)
8792
- [Files included in the release notes](doc/filesInReleaseNotes.md)
@@ -94,20 +99,23 @@ As of now, here is the list of achievements of this project:
9499
- Using files from the releases
95100

96101
### Contribute
102+
97103
- [How to contribute ?](doc/contribute.md)
98104

99105
### API
106+
100107
- [BLE implementation and API](./doc/ble.md)
101-
108+
102109
### Architecture and technical topics
110+
103111
- [Memory analysis](./doc/MemoryAnalysis.md)
104-
112+
105113
### Using the firmware
114+
106115
- [Integration with Gadgetbridge](doc/companionapps/Gadgetbridge.md)
107116
- [Integration with AmazFish](doc/companionapps/Amazfish.md)
108117
- [Firmware update, OTA](doc/companionapps/NrfconnectOTA.md)
109-
110-
118+
111119
## TODO - contribute
112120

113121
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.
@@ -121,21 +129,23 @@ Here a quick list out of my head of things to do for this project:
121129
- Measure power consumption and improve battery life
122130
- Improve documentation, take better pictures and video than mine
123131
- Improve the UI
124-
- 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](https://www.pine64.org/pinephone/) and the [Pinebook Pro](https://www.pine64.org/pinebook-pro/).
132+
- 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](https://www.pine64.org/pinephone/) and the [Pinebook Pro](https://www.pine64.org/pinebook-pro/).
125133
- Design a simple CI (preferably self-hosted and easy to reproduce).
126-
134+
127135
Do not hesitate to clone/fork the code, hack it and create pull-requests. I'll do my best to review and merge them :)
128136

129137
## Licenses
138+
130139
This project is released under the GNU General Public License version 3 or, at your option, any later version.
131140

132141
It integrates the following projects:
133142
- RTOS : **[FreeRTOS](https://freertos.org)** under the MIT license
134143
- UI : **[LittleVGL/LVGL](https://lvgl.io/)** under the MIT license
135144
- BLE stack : **[NimBLE](https://github.com/apache/mynewt-nimble)** under the Apache 2.0 license
136145
- Font : **[Jetbrains Mono](https://www.jetbrains.com/fr-fr/lp/mono/)** under the Apache 2.0 license
137-
138-
## Credits
146+
147+
## Credits
148+
139149
I’m 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.
140150

141151
Here are some people I would like to highlight:

doc/gettingStarted/gettingStarted-1.0.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Getting started with InfiniTime 1.0
2+
23
On April 22 2021, InfiniTime and Pine64 [announced the release of InfiniTime 1.0](https://www.pine64.org/2021/04/22/its-time-infinitime-1-0/) and the availability of PineTime smartwatches as *enthusiast grade end-user product*. This page aims to guide you with your first step with your new PineTime.
34

45
## Firmware, InfiniTime, Bootloader, Recovery firmware, OTA, DFU... What is it?
6+
57
You might have already seen these words by reading the announcement, release notes, or [the wiki guide](https://wiki.pine64.org/wiki/Upgrade_PineTime_to_InfiniTime_1.0.0) and, you may find them misleading if you're not familiar with the project.
68

79
Basically, a **firmware** is just a software running on the embedded hardware of a device, the PineTime in this case.
@@ -13,9 +15,10 @@ Basically, a **firmware** is just a software running on the embedded hardware of
1315
**OTA** and **DFU** refer to the update of the firmware over BLE (**B**luetooth **L**ow **E**nergy). **OTA** means **O**ver **T**he **A**ir, this is a functionality that allows the user to update the firmware how their device using a wireless communication like BLE. When we talk about **DFU** (**D**igital **F**irmware **U**pdate), we refer to the file format and protocol used to send the update of the firmware to the watch over-the-air. InfiniTime implement the (legacy) DFU protocol from Nordic Semiconductor (NRF).
1416

1517
## How to check the version of InfiniTime and the bootloader?
18+
1619
Since September 2020, all PineTimes (devkits or sealed) are flashed using the **[first iteration of the bootloader](https://github.com/lupyuen/pinetime-rust-mynewt/releases/tag/v4.1.7)** and **[InfiniTime 0.7.1](https://github.com/JF002/InfiniTime/releases/tag/0.7.1)**. There was no recovery firmware at that time.
1720

18-
The bootloader only runs when the watch starts (from an empty battery, for example) or after a reset (after a succesful OTA or a manual reset - long push on the button).
21+
The bootloader only runs when the watch starts (from an empty battery, for example) or after a reset (after a successful OTA or a manual reset - long push on the button).
1922

2023
You can recognize this first iteration of the bootloader with it greenish **PINETIME** logo.
2124

@@ -30,51 +33,56 @@ And for version >= 1.0 :
3033

3134
![InfiniTime 1.0 version](version-1.0.jpg)
3235

33-
34-
PineTime shipped from June 2020 (to be confirmed) will be flashed with the [new version of the bootloader](https://github.com/JF002/pinetime-mcuboot-bootloader/releases/tag/1.0.0), the [recovery firmware](https://github.com/JF002/InfiniTime/releases/tag/0.14.1) and [InfiniTime 1.0](https://github.com/JF002/InfiniTime/releases/tag/1.0.0).
36+
PineTime shipped from June 2021 (to be confirmed) will be flashed with the [new version of the bootloader](https://github.com/JF002/pinetime-mcuboot-bootloader/releases/tag/1.0.0), the [recovery firmware](https://github.com/JF002/InfiniTime/releases/tag/0.14.1) and [InfiniTime 1.0](https://github.com/JF002/InfiniTime/releases/tag/1.0.0).
3537

3638
The bootloader is easily recognizable with it white pine cone that is progressively drawn in green. It also displays its own version on the bottom (1.0.0 as of now).
3739

3840
![Bootloader 1.0](bootloader-1.0.jpg)
3941

4042
## How to update your PineTime?
43+
4144
To update your PineTime, you can use one of the compatible companion applications. Here are the main ones:
4245

4346
- **[Amazfish](https://github.com/piggz/harbour-amazfish)** (Desktop Linux, mobile Linux, SailfishOS, runs on the PinebookPro and the Pinephone)
4447
- **[Gadgetbridge](https://www.gadgetbridge.org/)** (Android)
4548
- **[Siglo](https://github.com/alexr4535/siglo)** (Linux, GTK based)
4649
- **NRFConnect** (closed source, Android & iOS).
4750

48-
See [this page](ota-gadgetbridge-nrfconnect.md) for more info about the OTA procedure using Gadgetbrige and NRFCOnnect.
51+
See [this page](ota-gadgetbridge-nrfconnect.md) for more info about the OTA procedure using Gadgetbridge and NRFConnect.
4952

5053
### From InfiniTime 0.7.1 / old bootloader
54+
5155
If your PineTime is currently running InfiniTime 0.7.1 and the old bootloader, we strongly recommend you update them to more recent version (Bootloader 1.0.0 and InfiniTime 1.0.0 as of now). We also recommend you install the recovery firmware once the bootloader is up-do-date.
5256

5357
Using the companion app of your choice, you'll need to apply the OTA procedure for these 3 firmwares in this sequence (failing to follow this specific order might temporarily or permanently brick your device):
54-
58+
5559
1. Flash the latest version of InfiniTime. The file to upload is named **pinetime-mcuboot-app-dfu-x.y.z.zip**. Here is the link to [InfiniTime 1.0](https://github.com/JF002/InfiniTime/releases/download/1.0.0/pinetime-mcuboot-app-dfu-1.0.0.zip).
56-
2. Update the bootloader by applying the OTA procedure with the file named [**reloader-mcuboot.zip** from the repo of the bootloader](https://github.com/JF002/pinetime-mcuboot-bootloader/releases/download/1.0.0/reloader-mcuboot.zip).
60+
2. Update the bootloader by applying the OTA procedure with the file named [**reloader-mcuboot.zip** from the repo of the bootloader](https://github.com/JF002/pinetime-mcuboot-bootloader/releases/download/1.0.0/reloader-mcuboot.zip).
5761
3. Install the recovery firmware by applying the OTA procedure with the file named [**pinetime-mcuboot-recovery-loader-dfu-0.14.1.zip** from the version 0.14.1 of InfiniTime](https://github.com/JF002/InfiniTime/releases/download/0.14.1/pinetime-mcuboot-recovery-loader-dfu-0.14.1.zip).
5862

5963
You'll find more info about this process in [this wiki page](https://wiki.pine64.org/wiki/Upgrade_PineTime_to_InfiniTime_1.0.0). You can also see the procedure in video [here](https://video.codingfield.com/videos/watch/831077c5-16f3-47b4-9b2b-c4bbfecc6529) and [here (from Amazfish)](https://video.codingfield.com/videos/watch/f7bffb3d-a6a1-43c4-8f01-f4aeff4adf9e)
6064

6165
### From version > 1.0
66+
6267
If you are already running the new "1.0.0" bootloader, all you have to do is update your version of InfiniTime when it'll be available. We'll write specific instructions when (if) we release a new version of the bootloader.
6368

6469
### Firmware validation
65-
The bootloader requires a (manual) validation of the firmware. If the watch reset with an updated firmware that was not validated, the bootloader will consider it as non-functionning and will revert to the previous version of the firmware. This is a safety feature to prevent bricking your device with a faulty firmware.
70+
71+
The bootloader requires a (manual) validation of the firmware. If the watch reset with an updated firmware that was not validated, the bootloader will consider it as non-functioning and will revert to the previous version of the firmware. This is a safety feature to prevent bricking your device with a faulty firmware.
6672

6773
You can validate your updated firmware on InfiniTime >= 1.0 by following this simple procedure:
68-
74+
6975
- From the watchface, swipe **right** to display the *Quick Actions menu*
7076
- Open the **Settings** app by tapping the *gear* icon on the bottom right
7177
- Swipe down and tap on the entry named **Firmware**
7278
- This app shows the version that is currently running. If it's not validated yet, it displays 2 buttons:
7379
- **Validate** to validate your firmware
7480
- **Reset** to reset the watch and revert to the previously running version of the firmware
75-
81+
7682
## InfiniTime 1.0 quick user guide
83+
7784
### Setting the time
85+
7886
By default, InfiniTime starts on the digital watchface. It'll probably display the epoch time (1 Jan 1970, 00:00). The time will be automatically synchronized once you connect on of the companion app to your PineTime using BLE connectivity. InfiniTime does not provide any way to manually set the time for now.
7987

8088
### Navigation in the menu
@@ -90,7 +98,7 @@ By default, InfiniTime starts on the digital watchface. It'll probably display t
9098
- Start the **flashlight** app
9199
- Enable/disable vibrations on notifications (Do Not Disturb mode)
92100
- Enter the **settings** menu
93-
- Settings
101+
- Settings
94102
- Display timeout
95103
- Wake up event (Tap, wrist rotation)
96104
- Time format (12/24H)
@@ -104,9 +112,8 @@ By default, InfiniTime starts on the digital watchface. It'll probably display t
104112
Most of the time, the bootloader just runs without your intervention (update and load the firmware).
105113

106114
However, you can enable 2 functionalities using the push button:
107-
115+
108116
- Push the button until the pine cone is drawn in **blue** to force the rollback of the previous version of the firmware, even if you've already validated the updated one
109117
- Push the button until the pine cone is drawn in **red** to load the recovery firmware. This recovery firmware only provides BLE connectivity and OTA functionality.
110118

111119
More info about the bootloader in [its project page](https://github.com/JF002/pinetime-mcuboot-bootloader/blob/master/README.md).
112-

0 commit comments

Comments
 (0)