Skip to content

Commit 76ab14f

Browse files
JF002Gitea
authored andcommitted
Merge branch 'develop' of JF/PineTime into master
2 parents 1d940af + 84b509e commit 76ab14f

317 files changed

Lines changed: 12185 additions & 468 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitpod.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
image:
2+
file: docker/.gitpod.Dockerfile
3+
github:
4+
prebuilds:
5+
# enable for the master/default branch (defaults to true)
6+
master: true
7+
# enable for all branches in this repo (defaults to false)
8+
branches: false
9+
# enable for pull requests coming from this repo (defaults to true)
10+
pullRequests: false
11+
# enable for pull requests coming from forks (defaults to false)
12+
pullRequestsFromForks: false
13+
# add a "Review in Gitpod" button as a comment to pull requests (defaults to true)
14+
addComment: true
15+
# add a "Review in Gitpod" button to pull requests (defaults to false)
16+
addBadge: false
17+
# add a label once the prebuild is ready to pull requests (defaults to false)
18+
addLabel: false #prebuilt-in-gitpod

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.10)
2-
project(pinetime VERSION 0.10.0 LANGUAGES C CXX ASM)
2+
project(pinetime VERSION 0.11.0 LANGUAGES C CXX ASM)
33

44
set(NRF_TARGET "nrf52")
55

doc/NavigationService.md

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
# Navigation Service
2+
## Introduction
3+
The navigation ble service provides 4 characteristics to allow the the watch to display navigation instructions from a companion application. The intended purpose is when performing some outdoor activities, for example running or cycling.
4+
5+
The 4 characteristics are:
6+
flag (string) - Upcoming icon name
7+
narrative (string) - Textual description of instruction
8+
manDist (string) - Manouvre Distance, the distance to the upcoming change
9+
progress (uint8) - Percent complete of total route, value 0-100
10+
11+
## Service
12+
The service UUID is c7e60001-78fc-48fe-8e23-433b3a1942d0
13+
14+
## Characteristics
15+
## Flags (UUID c7e60002-78fc-48fe-8e23-433b3a1942d0)
16+
All included icons are from pure-maps, which provides the actual routing from the client. The icon names ultimately come from the mapbox project "direction-icons", See https://github.com/rinigus/pure-maps/tree/master/qml/icons/navigation See the end of this document for the full lsit of supported icon names.
17+
18+
## Narrative (UUID c7e60003-78fc-48fe-8e23-433b3a1942d0)
19+
This is a client supplied string describing the upcoming instruction such as "At the roundabout take the first exit".
20+
21+
## Man Dist (UUID c7e60004-78fc-48fe-8e23-433b3a1942d0)
22+
This is a short string describing the distance to the upcoming instruction such as "50 m".
23+
24+
## Progress (UUID c7e60001=5-78fc-48fe-8e23-433b3a1942d0)
25+
The percent complete in a uint8. The watch displays this as an overall progress in a progress bar.
26+
27+
## Full icon list
28+
* arrive
29+
* arrive-left
30+
* arrive-right
31+
* arrive-straight
32+
* close
33+
* continue
34+
* continue-left
35+
* continue-right
36+
* continue-slight-left
37+
* continue-slight-right
38+
* continue-straight
39+
* continue-uturn
40+
* depart
41+
* depart-left
42+
* depart-right
43+
* depart-straight
44+
* end-of-road-left
45+
* end-of-road-right
46+
* ferry
47+
* flag
48+
* fork
49+
* fork-left
50+
* fork-right
51+
* fork-slight-left
52+
* fork-slight-right
53+
* fork-straight
54+
* invalid
55+
* invalid-left
56+
* invalid-right
57+
* invalid-slight-left
58+
* invalid-slight-right
59+
* invalid-straight
60+
* invalid-uturn
61+
* merge-left
62+
* merge-right
63+
* merge-slight-left
64+
* merge-slight-right
65+
* merge-straight
66+
* new-name-left
67+
* new-name-right
68+
* new-name-sharp-left
69+
* new-name-sharp-right
70+
* new-name-slight-left
71+
* new-name-slight-right
72+
* new-name-straight
73+
* notification-left
74+
* notification-right
75+
* notification-sharp-left
76+
* notification-sharp-right
77+
* notification-slight-left
78+
* notification-slight-right
79+
* notification-straight
80+
* off-ramp-left
81+
* off-ramp-right
82+
* off-ramp-sharp-left
83+
* off-ramp-sharp-right
84+
* off-ramp-slight-left
85+
* off-ramp-slight-right
86+
* off-ramp-straight
87+
* on-ramp-left
88+
* on-ramp-right
89+
* on-ramp-sharp-left
90+
* on-ramp-sharp-right
91+
* on-ramp-slight-left
92+
* on-ramp-slight-right
93+
* on-ramp-straight
94+
* rotary
95+
* rotary-left
96+
* rotary-right
97+
* rotary-sharp-left
98+
* rotary-sharp-right
99+
* rotary-slight-left
100+
* rotary-slight-right
101+
* rotary-straight
102+
* roundabout
103+
* roundabout-left
104+
* roundabout-right
105+
* roundabout-sharp-left
106+
* roundabout-sharp-right
107+
* roundabout-slight-left
108+
* roundabout-slight-right
109+
* roundabout-straight
110+
* turn-left
111+
* turn-right
112+
* turn-sharp-left
113+
* turn-sharp-right
114+
* turn-slight-left
115+
* turn-slight-right
116+
* turn-stright
117+
* updown
118+
* uturn

doc/ble.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,29 @@ If **CTS** is detected, it'll request the current time to the companion applicat
1515

1616
![BLE connection sequence diagram](ble/connection_sequence.png "BLE connection sequence diagram")
1717

18+
## BLE UUIDs
19+
When possible, InfiniTime tries to implement BLE services defined by the BLE specification.
20+
21+
When the service does not exist in the BLE specification, InfiniTime implement custom services. As all BLE services, custom services are identified by a UUID. Here is how to define the UUID of custom services in InfiniTime:
22+
23+
```
24+
- Base UUID : xxxxxxxx-78fc-48fe-8e23-433b3a1942d0
25+
- Service UUID : SSSS0000-78fc-48fe-8e23-433b3a1942d0 where SSSS is the service ID
26+
- Characteristic UUID : SSSSCCCC-78fc-48fe-8e23-433b3a1942d0 where CCCC is the characteristic ID for the service SSSS and is different than 0
27+
```
28+
29+
The following custom services are implemented in InfiniTime:
30+
31+
- Since InfiniTime 0.8:
32+
```
33+
* Music Service : 00000000-78fc-48fe-8e23-433b3a1942d0
34+
```
35+
36+
- Since InfiniTime 0.11:
37+
```
38+
* Navigation Service : 00010000-78fc-48fe-8e23-433b3a1942d0
39+
```
40+
1841
## BLE services
1942
[List of standard BLE services](https://www.bluetooth.com/specifications/gatt/services/)
2043

doc/openOCD.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,17 @@ reset
8989
## Examples
9090
### Flash bootloader and application
9191
```
92-
openocd -f ./openocd-stlink.cfg -f ./flash_bootloader_app.ocd
92+
openocd -f ./openocd-stlink.ocd -f ./flash_bootloader_app.ocd
9393
```
9494

9595
### Flash graphics flasher
9696
```
97-
openocd -f ./openocd-stlink.cfg -f ./flash_graphics.ocd
97+
openocd -f ./openocd-stlink.ocd -f ./flash_graphics.ocd
9898
```
9999

100100
## Connect the STLinkV2 to the PineTime
101101
Here is an example using the pogo pins:
102102
![SWD pinout](../images/swd_pinout.jpg)
103103
![Pogo pins](../images/pogopins.jpg)
104104

105-
You can find more information about the SWD wiring [on the wiki](https://wiki.pine64.org/index.php?title=PineTime_devkit_wiring).
105+
You can find more information about the SWD wiring [on the wiki](https://wiki.pine64.org/index.php?title=PineTime_devkit_wiring).

docker/.gitpod.Dockerfile

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
FROM gitpod/workspace-full
2+
3+
USER root
4+
ARG DEBIAN_FRONTEND=noninteractive
5+
RUN apt-get update -qq \
6+
&& apt-get install -y \
7+
# x86_64 / generic packages
8+
bash \
9+
build-essential \
10+
cmake \
11+
git \
12+
make \
13+
python3 \
14+
python3-pip \
15+
tar \
16+
unzip \
17+
wget \
18+
# aarch64 packages
19+
libffi-dev \
20+
libssl-dev \
21+
python3-dev \
22+
&& rm -rf /var/cache/apt/* /var/lib/apt/lists/*;
23+
24+
# Needs to be installed as root
25+
RUN pip3 install adafruit-nrfutil
26+
27+
COPY docker/build.sh /opt/
28+
# Lets get each in a separate docker layer for better downloads
29+
# GCC
30+
RUN bash -c "source /opt/build.sh; GetGcc;"
31+
# NrfSdk
32+
RUN bash -c "source /opt/build.sh; GetNrfSdk;"
33+
# McuBoot
34+
RUN bash -c "source /opt/build.sh; GetMcuBoot;"
35+
36+
# Link the default checkout workspace in to the default $SOURCES_DIR
37+
RUN ln -s /workspace/Pinetime /sources
38+
39+
USER gitpod

0 commit comments

Comments
 (0)