New Steps app
Settings to set the steps goal More detail in Motion app New 42px Font
This commit is contained in:
@@ -8,9 +8,9 @@ namespace Pinetime {
|
||||
public:
|
||||
void Update(int16_t x, int16_t y, int16_t z, uint32_t nbSteps);
|
||||
|
||||
uint16_t X() const { return x; }
|
||||
uint16_t Y() const { return y; }
|
||||
uint16_t Z() const { return z; }
|
||||
int16_t X() const { return x; }
|
||||
int16_t Y() const { return y; }
|
||||
int16_t Z() const { return z; }
|
||||
uint32_t NbSteps() const { return nbSteps; }
|
||||
bool ShouldWakeUp(bool isSleeping);
|
||||
|
||||
|
@@ -60,6 +60,12 @@ namespace Pinetime {
|
||||
};
|
||||
Controllers::BrightnessController::Levels GetBrightness() const { 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;
|
||||
|
Reference in New Issue
Block a user