Skip to content

Commit 187ea0f

Browse files
JF002Gitea
authored andcommitted
Merge branch 'develop' of JF/PineTime into master
2 parents adc7909 + b498e1d commit 187ea0f

File tree

92 files changed

+1939
-1166
lines changed

Some content is hidden

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

92 files changed

+1939
-1166
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: PineTime community chat (Matrix)
4+
url: https://app.element.io/#/room/#pinetime:matrix.org
5+
about: Please ask questions about PineTime here.
6+
- name: PineTime developers chat (Matrix)
7+
url: https://app.element.io/#/room/#pinetime-dev:matrix.org
8+
about: Please ask questions about PineTime development here.

.github/workflows/lv_sim.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# GitHub Actions Workflow to build Simulator for PineTime Smart Watch LVGL Interface
2+
3+
# Name of this Workflow
4+
name: Build PineTime LVGL Simulator
5+
6+
# When to run this Workflow...
7+
on:
8+
9+
# Run on all branches
10+
push:
11+
branches: []
12+
13+
# Also run this Workflow when a Pull Request is created or updated in the "master" and "develop" Branch
14+
pull_request:
15+
branches: [ master, develop ]
16+
17+
# Steps to run for the Workflow
18+
jobs:
19+
build:
20+
21+
# Run these steps on Ubuntu
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
26+
#########################################################################################
27+
# Download and Install Dependencies
28+
29+
- name: Install cmake
30+
uses: lukka/[email protected]
31+
32+
- name: Install SDL2 development package
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get -y install libsdl2-dev
36+
37+
#########################################################################################
38+
# Checkout
39+
40+
- name: Checkout source files
41+
uses: actions/checkout@v2
42+
with:
43+
submodules: recursive
44+
45+
#########################################################################################
46+
# get InfiniSim repo
47+
48+
- name: Get InfiniSim repo
49+
run: |
50+
git clone https://github.com/InfiniTimeOrg/InfiniSim.git --depth 1 --branch main
51+
git -C InfiniSim submodule update --init lv_drivers libpng
52+
53+
#########################################################################################
54+
# CMake
55+
56+
- name: CMake
57+
run: |
58+
cmake -G Ninja -S InfiniSim -B build_lv_sim -DInfiniTime_DIR="${PWD}"
59+
60+
#########################################################################################
61+
# Build and Upload simulator
62+
63+
# For Debugging Builds: Remove "make" option "-j" for clearer output. Add "--trace" to see details.
64+
# For Faster Builds: Add "make" option "-j"
65+
66+
- name: Build simulator executable
67+
run: |
68+
cmake --build build_lv_sim
69+
70+
- name: Upload simulator executable
71+
uses: actions/upload-artifact@v2
72+
with:
73+
name: infinisim
74+
path: build_lv_sim/infinisim

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.10)
2-
project(pinetime VERSION 1.8.0 LANGUAGES C CXX ASM)
2+
project(pinetime VERSION 1.9.0 LANGUAGES C CXX ASM)
33

44
set(CMAKE_C_STANDARD 99)
55
set(CMAKE_CXX_STANDARD 14)
@@ -100,7 +100,7 @@ else()
100100
endif()
101101

102102
set(VERSION_EDIT_WARNING "// Do not edit this file, it is automatically generated by CMAKE!")
103-
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/Version.h.in ${CMAKE_CURRENT_SOURCE_DIR}/src/Version.h)
103+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/Version.h.in ${CMAKE_CURRENT_BINARY_DIR}/src/Version.h)
104104
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/docker/post_build.sh.in ${CMAKE_CURRENT_BINARY_DIR}/post_build.sh)
105105

106106

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Fast open-source firmware for the [PineTime smartwatch](https://www.pine64.org/p
1616
- [AmazFish](https://openrepos.net/content/piggz/amazfish/) (SailfishOS)
1717
- [Siglo](https://github.com/alexr4535/siglo) (Linux)
1818
- [InfiniLink](https://github.com/xan-m/InfiniLink) **[Experimental]** (iOS)
19+
- [ITD](https://gitea.arsenm.dev/Arsen6331/itd) (Linux)
1920

2021
## Development
2122

@@ -25,6 +26,10 @@ Fast open-source firmware for the [PineTime smartwatch](https://www.pine64.org/p
2526
- [Creating a stopwatch in Pinetime(article)](https://pankajraghav.com/2021/04/03/PINETIME-STOPCLOCK.html)
2627
- [Tips on designing an app UI](doc/ui_guidelines.md)
2728

29+
### InfiniSim Simulator
30+
Use the [InfiniSim Simulator](https://github.com/InfiniTimeOrg/InfiniSim) to experience the `InfiniTime` user interface directly on your PC, to shorten the time until you get your hands on a real [PineTime smartwatch](https://www.pine64.org/pinetime/).
31+
Or use it to develop new Watchfaces, new Screens, or quickly iterate on the user interface.
32+
2833
### Contributing
2934
- [How to contribute?](/doc/contribute.md)
3035
- [Coding conventions](/doc/coding-convention.md)

doc/ui_guidelines.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
- Top bar takes at least 20px + padding
1010
- Top bar right icons move 8px to the left when using a page indicator
1111
- A black background helps to hide the screen border, allowing the UI to look less cramped when utilizing the entire display area.
12+
- A switch should be twice as wide as it is tall.
1213

1314
![example layouts](./ui/example.png)

src/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,13 @@ list(APPEND SOURCE_FILES
449449
displayapp/screens/settings/SettingSetTime.cpp
450450
displayapp/screens/settings/SettingChimes.cpp
451451
displayapp/screens/settings/SettingShakeThreshold.cpp
452+
displayapp/screens/settings/SettingBluetooth.cpp
452453

453454
## Watch faces
454455
displayapp/icons/bg_clock.c
455456
displayapp/screens/WatchFaceAnalog.cpp
456457
displayapp/screens/WatchFaceDigital.cpp
458+
displayapp/screens/WatchFaceTerminal.cpp
457459
displayapp/screens/PineTimeStyle.cpp
458460

459461
##
@@ -514,6 +516,7 @@ list(APPEND SOURCE_FILES
514516
displayapp/lv_pinetime_theme.c
515517

516518
systemtask/SystemTask.cpp
519+
systemtask/SystemMonitor.cpp
517520
drivers/TwiMaster.cpp
518521

519522
heartratetask/HeartRateTask.cpp
@@ -575,6 +578,7 @@ list(APPEND RECOVERY_SOURCE_FILES
575578
FreeRTOS/port_cmsis.c
576579

577580
systemtask/SystemTask.cpp
581+
systemtask/SystemMonitor.cpp
578582
drivers/TwiMaster.cpp
579583
components/gfx/Gfx.cpp
580584
components/rle/RleDecoder.cpp
@@ -612,6 +616,7 @@ list(APPEND RECOVERYLOADER_SOURCE_FILES
612616

613617
set(INCLUDE_FILES
614618

619+
${CMAKE_CURRENT_BINARY_DIR}/src/Version.h
615620
BootloaderVersion.h
616621
logging/Logger.h
617622
logging/NrfLogger.h
@@ -625,7 +630,6 @@ set(INCLUDE_FILES
625630
displayapp/screens/InfiniPaint.h
626631
displayapp/screens/StopWatch.h
627632
displayapp/screens/Paddle.h
628-
displayapp/screens/DropDownDemo.h
629633
displayapp/screens/BatteryIcon.h
630634
displayapp/screens/BleIcon.h
631635
displayapp/screens/NotificationIcon.h
@@ -710,6 +714,7 @@ set(INCLUDE_FILES
710714
)
711715

712716
include_directories(
717+
${CMAKE_BINARY_DIR}/src # include generated files like Version.h
713718
.
714719
../
715720
libs/

src/FreeRTOSConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393

9494
/* Software timer definitions. */
9595
#define configUSE_TIMERS 1
96-
#define configTIMER_TASK_PRIORITY (0)
96+
#define configTIMER_TASK_PRIORITY (1)
9797
#define configTIMER_QUEUE_LENGTH 32
9898
#define configTIMER_TASK_STACK_DEPTH (300)
9999

src/buttonhandler/ButtonHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "ButtonHandler.h"
1+
#include "buttonhandler/ButtonHandler.h"
22

33
using namespace Pinetime::Controllers;
44

src/buttonhandler/ButtonHandler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include "ButtonActions.h"
3+
#include "buttonhandler/ButtonActions.h"
44
#include "systemtask/SystemTask.h"
55
#include <FreeRTOS.h>
66
#include <timers.h>

src/components/ble/AlertNotificationClient.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <algorithm>
33
#include "components/ble/NotificationManager.h"
44
#include "systemtask/SystemTask.h"
5+
#include <nrf_log.h>
56

67
using namespace Pinetime::Controllers;
78
constexpr ble_uuid16_t AlertNotificationClient::ansServiceUuid;

0 commit comments

Comments
 (0)