Modify for Wadokei
This commit is contained in:
parent
a16ff8cf69
commit
1663566cc8
|
@ -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
3
build.sh
Executable 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
|
6
main.cpp
6
main.cpp
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user