Skip to content

Commit a80e782

Browse files
JF002Gitea
authored andcommitted
Merge branch 'develop' of JF/PineTime into master
2 parents 24d3eea + fefb429 commit a80e782

File tree

518 files changed

+71348
-10751
lines changed

Some content is hidden

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

518 files changed

+71348
-10751
lines changed

.vscode/settings.json

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,59 @@
11
{
22
"files.associations": {
3-
"chrono": "cpp"
3+
"chrono": "cpp",
4+
"list": "cpp",
5+
"array": "cpp",
6+
"atomic": "cpp",
7+
"bit": "cpp",
8+
"*.tcc": "cpp",
9+
"cctype": "cpp",
10+
"charconv": "cpp",
11+
"clocale": "cpp",
12+
"cmath": "cpp",
13+
"condition_variable": "cpp",
14+
"cstdarg": "cpp",
15+
"cstddef": "cpp",
16+
"cstdint": "cpp",
17+
"cstdio": "cpp",
18+
"cstdlib": "cpp",
19+
"cstring": "cpp",
20+
"ctime": "cpp",
21+
"cwchar": "cpp",
22+
"cwctype": "cpp",
23+
"deque": "cpp",
24+
"unordered_map": "cpp",
25+
"vector": "cpp",
26+
"exception": "cpp",
27+
"algorithm": "cpp",
28+
"functional": "cpp",
29+
"iterator": "cpp",
30+
"memory": "cpp",
31+
"memory_resource": "cpp",
32+
"netfwd": "cpp",
33+
"numeric": "cpp",
34+
"optional": "cpp",
35+
"random": "cpp",
36+
"ratio": "cpp",
37+
"string": "cpp",
38+
"string_view": "cpp",
39+
"system_error": "cpp",
40+
"tuple": "cpp",
41+
"type_traits": "cpp",
42+
"utility": "cpp",
43+
"fstream": "cpp",
44+
"initializer_list": "cpp",
45+
"iosfwd": "cpp",
46+
"iostream": "cpp",
47+
"istream": "cpp",
48+
"limits": "cpp",
49+
"mutex": "cpp",
50+
"new": "cpp",
51+
"ostream": "cpp",
52+
"sstream": "cpp",
53+
"stdexcept": "cpp",
54+
"streambuf": "cpp",
55+
"thread": "cpp",
56+
"cinttypes": "cpp",
57+
"typeinfo": "cpp"
458
}
559
}

CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
cmake_minimum_required(VERSION 3.10)
2-
project(pinetime VERSION 0.15.0 LANGUAGES C CXX ASM)
2+
project(pinetime VERSION 1.0.0 LANGUAGES C CXX ASM)
3+
4+
set(CMAKE_C_STANDARD 99)
5+
set(CMAKE_CXX_STANDARD 14)
6+
7+
# set(CMAKE_GENERATOR "Unix Makefiles")
8+
set(CMAKE_C_EXTENSIONS OFF)
9+
set(CMAKE_C_STANDARD_REQUIRED ON)
10+
set(CMAKE_CXX_EXTENSIONS OFF)
11+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
12+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
313

414
set(NRF_TARGET "nrf52")
515

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# PineTime
33

4-
![Build PineTime Firmware](https://github.com/JF002/InfiniTime/workflows/Build%20PineTime%20Firmware/badge.svg?branch=master)
4+
[![Build PineTime Firmware](https://github.com/JF002/InfiniTime/workflows/Build%20PineTime%20Firmware/badge.svg?branch=master)](https://github.com/JF002/InfiniTime/actions)
55

66
> 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.
77
@@ -34,6 +34,9 @@ As of now, here is the list of achievements of this project:
3434
- Rich user interface via display, touchscreen and pushbutton
3535
- Time synchronization via BLE
3636
- Notification via BLE
37+
- Heart rate measurements
38+
- Step counting
39+
- Wake-up on wrist rotation
3740
- Multiple 'apps' :
3841
* Clock (displays the date, time, battery level, ble connection status, heart rate)
3942
* System info (displays various info : BLE MAC, build date/time, uptime, version,...)
@@ -45,9 +48,10 @@ As of now, here is the list of achievements of this project:
4548
* Paddle (single player pong-like game)
4649
* Two (2048 clone game)
4750
* Stopwatch (with all the necessary functions such as play, pause, lap, stop)
48-
- Supported by 2 companion apps (development is in progress):
51+
- Supported by 3 companion apps (development is in progress):
4952
* [Gadgetbridge](https://codeberg.org/Freeyourgadget/Gadgetbridge/) (on Android)
5053
* [Amazfish](https://openrepos.net/content/piggz/amazfish) (on SailfishOS and Linux)
54+
* [Siglo](https://github.com/alexr4535/siglo) (on Linux)
5155
* **[Experimental]** [WebBLEWatch](https://hubmartin.github.io/WebBLEWatch/) Synchronize time directly from your web browser. [video](https://youtu.be/IakiuhVDdrY)
5256
- **[Experimental]** OTA (Over-the-air) update via BLE
5357
- **[Experimental]** Bootloader based on [MCUBoot](https://juullabs-oss.github.io/mcuboot/)
@@ -59,6 +63,7 @@ As of now, here is the list of achievements of this project:
5963

6064
### Develop
6165
- [Generate the fonts and symbols](src/displayapp/fonts/Readme.md)
66+
- [Creating a stopwatch in Pinetime(article)](https://pankajraghav.com/2021/04/03/PINETIME-STOPCLOCK.html)
6267

6368
### Build, flash and debug
6469
- [Project branches](doc/branches.md)

cmake-nRF5x/CMake_nRF5x.cmake

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ macro(nRF5x_setup)
3636
set(CMAKE_OSX_SYSROOT "/")
3737
set(CMAKE_OSX_DEPLOYMENT_TARGET "")
3838

39-
# language standard/version settings
40-
set(CMAKE_C_STANDARD 99)
41-
set(CMAKE_CXX_STANDARD 11)
4239

4340
# CPU specyfic settings
4441
if (NRF_TARGET MATCHES "nrf51")
@@ -86,8 +83,8 @@ macro(nRF5x_setup)
8683
set(CMAKE_CXX_FLAGS "${COMMON_FLAGS}")
8784
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g3")
8885
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
89-
set(CMAKE_ASM_FLAGS "-MP -MD -std=c99 -x assembler-with-cpp")
90-
set(CMAKE_EXE_LINKER_FLAGS "-mthumb -mabi=aapcs -std=gnu++98 -std=c99 -L ${NRF5_SDK_PATH}/modules/nrfx/mdk -T${NRF5_LINKER_SCRIPT} ${CPU_FLAGS} -Wl,--gc-sections --specs=nano.specs -lc -lnosys -lm")
86+
set(CMAKE_ASM_FLAGS "-MP -MD -x assembler-with-cpp")
87+
set(CMAKE_EXE_LINKER_FLAGS "-mthumb -mabi=aapcs -L ${NRF5_SDK_PATH}/modules/nrfx/mdk -T${NRF5_LINKER_SCRIPT} ${CPU_FLAGS} -Wl,--gc-sections --specs=nano.specs -lc -lnosys -lm")
9188
# note: we must override the default cmake linker flags so that CMAKE_C_FLAGS are not added implicitly
9289
set(CMAKE_C_LINK_EXECUTABLE "${CMAKE_C_COMPILER} <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
9390
set(CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_C_COMPILER} <LINK_FLAGS> <OBJECTS> -lstdc++ -o <TARGET> <LINK_LIBRARIES>")

doc/gettingStarted/gettingStarted.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Good news! Gadgetbridge **automatically** synchronizes the time when connecting
9191
### Using NRFConnect
9292
You must enable the **CTS** *GATT server* into NRFConnect so that InfiniTime can synchronize the time with your smartphone.
9393

94-
Launch NRFConnect, tap the sandwish button on the top left and select *Configure GATT server*:
94+
Launch NRFConnect, tap the sandwich button on the top left and select *Configure GATT server*:
9595

9696
![NRFConnect CTS 0](nrfconnectcts0.jpg)
9797

docker/.gitpod.Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@ RUN apt-get update -qq \
1414
python3-pip \
1515
tar \
1616
unzip \
17-
wget \
17+
wget \
1818
# aarch64 packages
1919
libffi-dev \
2020
libssl-dev \
21-
python3-dev \
21+
python3-dev \
2222
&& rm -rf /var/cache/apt/* /var/lib/apt/lists/*;
2323

2424
# Needs to be installed as root
2525
RUN pip3 install adafruit-nrfutil
26+
RUN pip3 install -Iv cryptography==3.3
2627

2728
COPY docker/build.sh /opt/
2829
# Lets get each in a separate docker layer for better downloads
@@ -34,6 +35,6 @@ RUN bash -c "source /opt/build.sh; GetNrfSdk;"
3435
RUN bash -c "source /opt/build.sh; GetMcuBoot;"
3536

3637
# Link the default checkout workspace in to the default $SOURCES_DIR
37-
RUN ln -s /workspace/Pinetime /sources
38+
RUN ln -s /workspace/InfiniTime /sources
3839

39-
USER gitpod
40+
USER gitpod

0 commit comments

Comments
 (0)