mirror of https://github.com/sqfmi/Watchy.git
Merge pull request #61 from TomasEkeli/patch-1
step count reset and temperature display bugpull/62/head
commit
80c4444576
|
@ -64,6 +64,10 @@ void Watchy7SEG::drawDate(){
|
|||
display.println(currentTime.Year + YEAR_OFFSET);// offset from 1970, since year is stored in uint8_t
|
||||
}
|
||||
void Watchy7SEG::drawSteps(){
|
||||
// reset step counter at midnight
|
||||
if (currentTime.Hour == 0 && currentTime.Minute == 0){
|
||||
sensor.resetStepCounter();
|
||||
}
|
||||
uint32_t stepCount = sensor.getCounter();
|
||||
display.drawBitmap(10, 165, steps, 19, 23, DARKMODE ? GxEPD_WHITE : GxEPD_BLACK);
|
||||
display.setCursor(35, 190);
|
||||
|
|
Loading…
Reference in New Issue