Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alarm status on infineat #2068

Open
wants to merge 116 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
d0f776b
Add a new Calendar App
JustScott Jan 11, 2024
780e68f
Removed unused variables, some of the commented out code, and added a
JustScott Jan 11, 2024
0535e93
Reformatted the code to comply with clang-format.
JustScott Jan 14, 2024
577dfd5
Updated the calendar to use colors from the InfiniTimeTheme.h's Color…
JustScott Jan 23, 2024
1162fdb
initial commit, with already alarm added. TODO : add possibility to d…
May 28, 2024
ab901b8
added option to show or hide alarm status
May 28, 2024
1af813a
fixed alarm status reappearing when alarm changed, even if not set to…
May 28, 2024
735083a
AMPM for alarm seems to work - but overloads the screen, of course. c…
May 28, 2024
48cfd48
update settings of watchfaceInifineat with alarm settings so it looks…
May 29, 2024
edb61e7
fixed that label ampm stays shown when alarm status is hidden
May 29, 2024
a524694
compile sans avoir modifié de code ok
May 7, 2024
b16e13f
add WatchFaceInfineatColors that has different color sets than infineat
May 23, 2024
d7de641
added symbols for alarm states, added alarm state and hour to watchfa…
May 23, 2024
1ec43e2
c'est mieux aligné
May 23, 2024
82e96cf
InfiniTime firmware for pinetime with a new watchface. Note that some…
May 27, 2024
d2fab8d
Add pictures in readme
May 27, 2024
ef59bed
start cat icon
May 27, 2024
a4389f6
test
May 29, 2024
b7a353c
modified: .gitignore
May 29, 2024
b8f7b65
copy :( files from gitlab repo
May 29, 2024
055b75d
test combiner tout
May 29, 2024
0ecfbee
now I have the Meow Watchface AND the Infineat Watchface with alarm d…
May 29, 2024
9a377f6
fix src/displayapp/apps/CMakeLists.txt after merge mess
May 29, 2024
5ac1e90
fix src/CMakeLists.txt after merge mess
May 29, 2024
ce13c72
fix fonts after merge mess
May 29, 2024
6475d6e
fix src/displayapp/UserApps.h
May 29, 2024
a250fa4
fix src/displayapp/screens/settings/SettingWatchFace.h after merge mess
May 29, 2024
a6b932e
fix AlarmIcon.cpp and WatchFaceInfineat.cpp after merge mess
May 29, 2024
3cfe46e
fix Apps.h.in and src/components/settings/Settings.h after merge mess
May 29, 2024
896f201
fixing mess again after merge mess
May 29, 2024
25e81b1
now there is my watchface in pink and stuff adn the Infineat watchfac…
May 29, 2024
10c470e
update doc of main branch
May 29, 2024
48f182c
update README with link to original repo
May 29, 2024
961c510
copied a memo I made with files to modify when ADDING a watchface. ma…
May 29, 2024
13773a9
modified the battery icon in Meow to be a cat face. add pictures acco…
May 29, 2024
d81356c
revert meow to pine icon, rework on cat later
May 29, 2024
8657f71
The watchface infineat is modified with alarm status and time set sho…
Eve1374 May 30, 2024
a0c9b4d
cat as battery icon : modified the lines of infineat and position of …
Eve1374 May 30, 2024
cbc16cd
Emit the message BleRadioEnableToggle to DisplayApp only if the enabl…
JF002 Mar 15, 2024
db947fa
WatchFaceDigital: Remove unused variables
vkareh Mar 18, 2024
c7a74ad
Unify docker devcontainer with dockerfile used for CI (#1587)
BloodStainedCrow Mar 23, 2024
80b4da8
fix: heartrate app displays --- instead of 000 (#1887)
KaffeinatedKat Apr 12, 2024
2c9444d
SPI transaction hooks
mark9064 Feb 11, 2024
e579b83
Remove task to notify
mark9064 Feb 11, 2024
7739ecf
Refactor display WriteToRam
mark9064 Feb 9, 2024
0d77cf9
Use functional abstraction for hooks
mark9064 Apr 1, 2024
1a379c8
Refactor lambdas
mark9064 Apr 2, 2024
7e8a4d3
Avoid storing lambda
mark9064 Apr 10, 2024
7c8e5c2
Rename to pre-transaction hook
mark9064 Apr 18, 2024
cad3de4
Use FreeRTOS delay instead of spinning the CPU
mark9064 Oct 26, 2023
32dfaa8
Apply display driver datasheet delays
mark9064 Jan 30, 2024
b8fe20b
Move includes back
mark9064 Mar 25, 2024
5c93cbd
Include task header (Fixes sim)
mark9064 Mar 29, 2024
1246d77
Fix erratum 58 workaround
mark9064 Jan 24, 2024
b55c9d2
initial commit, with already alarm added. TODO : add possibility to d…
May 28, 2024
feb7631
added option to show or hide alarm status
May 28, 2024
f366354
fixed alarm status reappearing when alarm changed, even if not set to…
May 28, 2024
8ca3888
AMPM for alarm seems to work - but overloads the screen, of course. c…
May 28, 2024
194b061
update settings of watchfaceInifineat with alarm settings so it looks…
May 29, 2024
e8a1b12
fixed that label ampm stays shown when alarm status is hidden
May 29, 2024
b588241
compile sans avoir modifié de code ok
May 7, 2024
5cd1bcf
add WatchFaceInfineatColors that has different color sets than infineat
May 23, 2024
6494faa
try to rebase scottcalendar into this testbranch
Eve1374 May 30, 2024
91fb716
c'est mieux aligné
May 23, 2024
55866d4
InfiniTime firmware for pinetime with a new watchface. Note that some…
May 27, 2024
ecea195
Add pictures in readme
May 27, 2024
d6a6bda
start cat icon
May 27, 2024
8929563
test
May 29, 2024
ad5a472
modified: .gitignore
May 29, 2024
ee99e55
copy :( files from gitlab repo
May 29, 2024
6cb3b60
test combiner tout
May 29, 2024
bbbc9d9
now I have the Meow Watchface AND the Infineat Watchface with alarm d…
May 29, 2024
ad19b9e
fix src/displayapp/apps/CMakeLists.txt after merge mess
May 29, 2024
99d223b
fix src/CMakeLists.txt after merge mess
May 29, 2024
d1c0037
combiner calendar et meow
Eve1374 May 30, 2024
dbc1dcf
fix src/displayapp/UserApps.h
May 29, 2024
e8b1b94
fix src/displayapp/screens/settings/SettingWatchFace.h after merge mess
May 29, 2024
055b9a9
fix AlarmIcon.cpp and WatchFaceInfineat.cpp after merge mess
May 29, 2024
7bab4a6
fix Apps.h.in and src/components/settings/Settings.h after merge mess
May 29, 2024
5dfdec4
fixing mess again after merge mess
May 29, 2024
9437a8d
now there is my watchface in pink and stuff adn the Infineat watchfac…
May 29, 2024
f7333c6
copied a memo I made with files to modify when ADDING a watchface. ma…
May 29, 2024
5d261f5
modified the battery icon in Meow to be a cat face. add pictures acco…
May 29, 2024
e2056f6
revert meow to pine icon, rework on cat later
May 29, 2024
acbcd53
cat as battery icon : modified the lines of infineat and position of …
Eve1374 May 30, 2024
6602a1d
update fonts with calendar symbols, rebase failed
Eve1374 May 30, 2024
3f214a2
cleaned CMAKELISTS
Eve1374 May 30, 2024
3133ada
remove apps and wf from cmake
Eve1374 May 30, 2024
d78e603
sync with main from infinitime
Eve1374 Jun 26, 2024
f42ef49
Merge branch 'testcalendar' into my-custom-infinitime
Eve1374 Jul 8, 2024
8ed1d22
Merge branch 'main' into my-custom-infinitime
Eve1374 Jul 8, 2024
164a212
faire en sorte que watchfacemeow et watchface infineat soient compati…
Eve1374 Jul 9, 2024
e4d6014
updated WatchFaceMeow to match alignment, settings, AMPM compatibilit…
Eve1374 Jul 10, 2024
2a762f6
On branch my-custom-infinitime
Eve1374 Jul 10, 2024
59f9a5e
Changes to be committed:
Eve1374 Jul 10, 2024
6ce316d
hide alarm depending on option status
Eve1374 Jul 15, 2024
5e19e04
new file: doc/lvgl_align.png add ref for alignment names in lvgl
Eve1374 Jul 16, 2024
b7263ed
start to add timer info on WatchFaceMeow
Eve1374 Jul 25, 2024
e940593
Merge branch 'main' of github.com:InfiniTimeOrg/InfiniTime
Eve1374 Aug 26, 2024
6627842
Merge branch 'main' into alarm-status-on-infineat
Eve1374 Sep 3, 2024
b7b68f6
merge ??
Eve1374 Oct 2, 2024
9ff835b
corrections
Eve1374 Oct 2, 2024
a18190e
corrections
Eve1374 Oct 2, 2024
e2ca539
corrections
Eve1374 Oct 2, 2024
3924188
corrections
Eve1374 Oct 2, 2024
e16c8f8
correcitons
Eve1374 Oct 16, 2024
cdf86da
Merge branch 'alarm-status-on-infineat' of github.com:Eve1374/InfiniT…
Eve1374 Oct 16, 2024
6f9df08
Merge branch 'main' of github.com:InfiniTimeOrg/InfiniTime
Eve1374 Oct 16, 2024
c71d643
merge from main
Eve1374 Oct 16, 2024
de119b5
merged from main, fixed WatchFaceCasio after merge mess, fix my Infi…
Eve1374 Oct 16, 2024
371e3d1
revert casiostyle changes
Eve1374 Oct 30, 2024
c23887d
merge from main tag 1.15
Eve1374 Dec 4, 2024
4e7f59c
formatting with git-clang-format-14
Eve1374 Dec 5, 2024
95d8674
format
Eve1374 Dec 5, 2024
cfc6e0e
clean leftovers of another branch
Eve1374 Dec 5, 2024
2a0ae65
Merge branch 'main' into alarm-status-on-infineat
Eve1374 Dec 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ cmake_install.cmake
Makefile
build
tools
node_modules
Eve1374 marked this conversation as resolved.
Show resolved Hide resolved

# Resulting binary files
*.a
Expand Down
22 changes: 22 additions & 0 deletions doc/alarmStatusOnInfineat/alarmStatusOnInfineat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# [InfiniTime : show alarm status on infineat watchface](https://github.com/Eve1374/InfiniTime/tree/alarm-status-on-infineat)
- I forked from [InfiniTime](https://github.com/InfiniTimeOrg/InfiniTime) and added a branch alarm-status-on-infineat
- I modified the watchface settings to have the possibility to show alarm status on watchface

Here are pictures with alarm set in 12 and 24hrs format :

![alarm set and shown, 12hrs format](infineat_alarm_set_12hrs.png "alarm set and shown, 12hrs format")
![alarm set and shown, 24hrs format](infineat_alarm_set_24hrs.png "alarm set and shown, 24hrs format")

Alarm not set :

![alarm shown and not set](infineat_alarm_notset.png "alarm shown and not set")

Settings view :

![settings](infineat_settings.png "settings modified with a button to turn on or off alarm display")


## Possible further development :
- Move this setting to the Alarm app and include alarm display in all watchfaces ?


Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/alarmStatusOnInfineat/infineat_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
183 changes: 183 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
Eve1374 marked this conversation as resolved.
Show resolved Hide resolved
"dependencies": {
"lv_font_conv": "^1.5.2"
}
}
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ list(APPEND SOURCE_FILES
displayapp/screens/StopWatch.cpp
displayapp/screens/BatteryIcon.cpp
displayapp/screens/BleIcon.cpp
displayapp/screens/AlarmIcon.cpp
displayapp/screens/NotificationIcon.cpp
displayapp/screens/SystemInfo.cpp
displayapp/screens/Label.cpp
Expand Down
14 changes: 13 additions & 1 deletion src/components/settings/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ namespace Pinetime {

struct WatchFaceInfineat {
bool showSideCover = true;
int colorIndex = 0;
bool showAlarmStatus = true;
int colorIndex = 0;
};

Settings(Pinetime::Controllers::FS& fs);
Expand Down Expand Up @@ -123,6 +124,17 @@ namespace Pinetime {
return settings.watchFaceInfineat.showSideCover;
};

void SetInfineatShowAlarmStatus(bool show) {
if (show != settings.watchFaceInfineat.showAlarmStatus) {
settings.watchFaceInfineat.showAlarmStatus = show;
settingsChanged = true;
}
};

bool GetInfineatShowAlarmStatus() const {
return settings.watchFaceInfineat.showAlarmStatus;
};

void SetInfineatColorIndex(int index) {
if (index != settings.watchFaceInfineat.colorIndex) {
settings.watchFaceInfineat.colorIndex = index;
Expand Down
2 changes: 1 addition & 1 deletion src/displayapp/fonts/fonts.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
{
"file": "FontAwesome5-Solid+Brands+Regular.woff",
"range": "0xf294, 0xf242, 0xf54b, 0xf21e, 0xf1e6, 0xf017, 0xf129, 0xf03a, 0xf185, 0xf560, 0xf001, 0xf3fd, 0xf1fc, 0xf45d, 0xf59f, 0xf5a0, 0xf027, 0xf028, 0xf6a9, 0xf04b, 0xf04c, 0xf048, 0xf051, 0xf095, 0xf3dd, 0xf04d, 0xf2f2, 0xf024, 0xf252, 0xf569, 0xf06e, 0xf015, 0xf00c, 0xf0f3, 0xf522, 0xf743"
"range": "0xf294, 0xf242, 0xf54b, 0xf21e, 0xf1e6, 0xf017, 0xf129, 0xf03a, 0xf185, 0xf560, 0xf001, 0xf3fd, 0xf1fc, 0xf45d, 0xf59f, 0xf5a0, 0xf027, 0xf028, 0xf6a9, 0xf04b, 0xf04c, 0xf048, 0xf051, 0xf095, 0xf3dd, 0xf04d, 0xf2f2, 0xf024, 0xf252, 0xf569, 0xf06e, 0xf015, 0xf00c, 0xf0f3, 0xf522, 0xf743, 0xf0f3, 0xf1f6"
}
],
"bpp": 1,
Expand Down
11 changes: 11 additions & 0 deletions src/displayapp/screens/AlarmIcon.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "displayapp/screens/AlarmIcon.h"
#include "displayapp/screens/Symbols.h"
using namespace Pinetime::Applications::Screens;

const char* AlarmIcon::GetIcon(bool isSet) {
if (isSet) {
return Symbols::bell;
}

return Symbols::notbell;
}
14 changes: 14 additions & 0 deletions src/displayapp/screens/AlarmIcon.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#pragma once

#include "components/alarm/AlarmController.h"

namespace Pinetime {
namespace Applications {
namespace Screens {
class AlarmIcon {
public:
static const char* GetIcon(bool isSet);
};
}
}
}
1 change: 1 addition & 0 deletions src/displayapp/screens/Symbols.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace Pinetime {
static constexpr const char* shoe = "\xEF\x95\x8B";
static constexpr const char* clock = "\xEF\x80\x97";
static constexpr const char* bell = "\xEF\x83\xB3";
static constexpr const char* notbell = "\xEF\x87\xB6";
static constexpr const char* info = "\xEF\x84\xA9";
static constexpr const char* list = "\xEF\x80\xBA";
static constexpr const char* sun = "\xEF\x86\x85";
Expand Down
Loading
Loading