-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from RuffaloLavoisier/DualAnalogOverlays
- Loading branch information
Showing
37 changed files
with
1,160 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef OSW_APP_FITNESS_STATS_H | ||
#define OSW_APP_FITNESS_STATS_H | ||
|
||
#include <osw_hal.h> | ||
#include <osw_ui.h> | ||
|
||
#include "osw_app.h" | ||
|
||
class OswAppFitnessStats : public OswApp { | ||
public: | ||
OswAppFitnessStats(void) { ui = OswUI::getInstance(); }; | ||
virtual void setup() override; | ||
virtual void loop() override; | ||
virtual void stop() override; | ||
~OswAppFitnessStats(){}; | ||
void showFitnessTracking(); | ||
|
||
private: | ||
OswUI* ui; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef OSW_APP_KCAL_STATS_H | ||
#define OSW_APP_KCAL_STATS_H | ||
|
||
#include <osw_hal.h> | ||
#include <osw_ui.h> | ||
|
||
#include "osw_app.h" | ||
|
||
class OswAppKcalStats : public OswApp { | ||
public: | ||
OswAppKcalStats(void) { ui = OswUI::getInstance(); }; | ||
virtual void setup() override; | ||
virtual void loop() override; | ||
virtual void stop() override; | ||
~OswAppKcalStats(){}; | ||
|
||
private: | ||
uint8_t cursorPos = 6; // WeekDay position | ||
void drawCurvedChart(); | ||
void showCurvedChart(); | ||
void readyValue(); | ||
uint16_t weekValue[7] = {}; | ||
OswUI* ui; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef OSW_APP_STEP_STATS_H | ||
#define OSW_APP_STEP_STATS_H | ||
|
||
#include <osw_hal.h> | ||
#include <osw_ui.h> | ||
|
||
#include "osw_app.h" | ||
|
||
class OswAppStepStats : public OswApp { | ||
public: | ||
OswAppStepStats(void) { ui = OswUI::getInstance(); }; | ||
virtual void setup() override; | ||
virtual void loop() override; | ||
virtual void stop() override; | ||
~OswAppStepStats(){}; | ||
|
||
private: | ||
void showStickChart(); | ||
void drawChart(); | ||
OswUI* ui; | ||
}; | ||
|
||
#endif |
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
include/apps/watchfaces/watchface_binary.h → ...e/apps/watchfaces/OswAppWatchfaceBinary.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef OSW_APP_WATCHFACE_DUAL_H | ||
#define OSW_APP_WATCHFACE_DUAL_H | ||
|
||
#include <osw_hal.h> | ||
#include <osw_ui.h> | ||
|
||
#include "osw_app.h" | ||
|
||
class OswAppWatchfaceDual : public OswApp { | ||
public: | ||
OswAppWatchfaceDual(void) { ui = OswUI::getInstance(); }; | ||
virtual void setup() override; | ||
virtual void loop() override; | ||
virtual void stop() override; | ||
~OswAppWatchfaceDual(){}; | ||
//for dual-time | ||
|
||
static void drawProgressBar(OswUI* ui,uint8_t cx, uint8_t cy, uint8_t jump, uint8_t length, uint8_t value,float angle, uint8_t radius, uint16_t color, int* goal=nullptr); | ||
void drawAnim(); | ||
|
||
private: | ||
OswUI* ui; | ||
// Blank to make the 2 clocks easier to recognize | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef OSW_APP_WATCHFACE_FITNESS_H | ||
#define OSW_APP_WATCHFACE_FITNESS_H | ||
|
||
#include <osw_hal.h> | ||
#include <osw_ui.h> | ||
|
||
#include "osw_app.h" | ||
|
||
class OswAppWatchfaceFitness : public OswApp { | ||
public: | ||
OswAppWatchfaceFitness(void) { ui = OswUI::getInstance(); }; | ||
virtual void setup() override; | ||
virtual void loop() override; | ||
virtual void stop() override; | ||
~OswAppWatchfaceFitness(){}; | ||
static float calculateDistance(uint32_t steps); | ||
static uint32_t calculateKcalorie(uint32_t steps); | ||
|
||
private: | ||
void showFitnessTracking(); | ||
OswUI* ui; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.