Merge pull request #298 from joaquimorg/StepsApp

New Steps app
This commit is contained in:
JF002
2021-05-15 22:32:40 +02:00
committed by GitHub
15 changed files with 544 additions and 23 deletions

View File

@@ -8,13 +8,13 @@ namespace Pinetime {
public:
void Update(int16_t x, int16_t y, int16_t z, uint32_t nbSteps);
uint16_t X() const {
int16_t X() const {
return x;
}
uint16_t Y() const {
int16_t Y() const {
return y;
}
uint16_t Z() const {
int16_t Z() const {
return z;
}
uint32_t NbSteps() const {

View File

@@ -86,6 +86,14 @@ namespace Pinetime {
return settings.brightLevel;
};
void SetStepsGoal( uint32_t goal ) {
if ( goal != settings.stepsGoal )
settingsChanged = true;
settings.stepsGoal = goal;
};
uint32_t GetStepsGoal() const { return settings.stepsGoal; };
private:
Pinetime::Drivers::SpiNorFlash& spiNorFlash;
struct SettingsData {
@@ -95,7 +103,7 @@ namespace Pinetime {
uint8_t clockFace = 0;
uint32_t stepsGoal = 1000;
uint32_t stepsGoal = 10000;
uint32_t screenTimeOut = 15000;
WakeUpMode wakeUpMode = WakeUpMode::None;