Modify for Wadokei

This commit is contained in:
Will Bradley 2024-12-05 18:03:52 -08:00
parent a16ff8cf69
commit 1663566cc8
Signed by: will
GPG Key ID: 7753374769D155F8
3 changed files with 12 additions and 5 deletions

View File

@ -245,6 +245,14 @@ add_library(littlefs STATIC
target_include_directories(littlefs PUBLIC "${InfiniTime_DIR}/src/libs/littlefs")
target_link_libraries(infinisim PRIVATE littlefs)
# sunset
add_library(sunset STATIC
${InfiniTime_DIR}/src/libs/sunset/src/sunset.h
${InfiniTime_DIR}/src/libs/sunset/src/sunset.cpp
)
target_include_directories(sunset PUBLIC "${InfiniTime_DIR}/src/libs/sunset")
target_link_libraries(infinisim PRIVATE sunset)
# QCBOR
add_library(QCBOR STATIC
${InfiniTime_DIR}/src/libs/QCBOR/src/ieee754.c

3
build.sh Executable file
View File

@ -0,0 +1,3 @@
cmake -S . -B build -DInfiniTime_DIR=/home/wbradley/apps/infinitime \
-DENABLE_USERAPPS="Apps::Navigation, Apps::StopWatch, Apps::Timer, Apps::Alarm, Apps::Steps, Apps::HeartRate, Apps::Music, Apps::Twos"
cmake --build build && build/infinisim

View File

@ -852,14 +852,10 @@ public:
void switch_to_screen(uint8_t screen_idx)
{
if (screen_idx == 1) {
settingsController.SetWatchFace(Pinetime::Applications::WatchFace::Digital);
displayApp.StartApp(Pinetime::Applications::Apps::Clock, Pinetime::Applications::DisplayApp::FullRefreshDirections::None);
}
else if (screen_idx == 2) {
settingsController.SetWatchFace(Pinetime::Applications::WatchFace::Analog);
displayApp.StartApp(Pinetime::Applications::Apps::Clock, Pinetime::Applications::DisplayApp::FullRefreshDirections::None);
}
else if (screen_idx == 3) {
else if (screen_idx == 2) {
settingsController.SetWatchFace(Pinetime::Applications::WatchFace::PineTimeStyle);
displayApp.StartApp(Pinetime::Applications::Apps::Clock, Pinetime::Applications::DisplayApp::FullRefreshDirections::None);
}