Add blank page for weather for now
All checks were successful
Compile / Compile (push) Successful in 1m21s
All checks were successful
Compile / Compile (push) Successful in 1m21s
This commit is contained in:
parent
52478ec602
commit
3e7ddb805c
4 changed files with 80 additions and 2 deletions
26
src/WatchFacePages/Weather.cpp
Normal file
26
src/WatchFacePages/Weather.cpp
Normal file
|
@ -0,0 +1,26 @@
|
|||
#include "Weather.h"
|
||||
#include "../SevenSegment.h"
|
||||
#include "../Icons.h"
|
||||
#include <Fonts/FreeSans9pt7b.h>
|
||||
#include <Fonts/FreeMonoBold9pt7b.h>
|
||||
#include <Fonts/FreeMonoBold12pt7b.h>
|
||||
|
||||
WatchFacePages::Weather::Weather(WatchyDisplay & display, WatchFeatures::WatchFeatures & features)
|
||||
: m_display(display), m_features(features)
|
||||
{
|
||||
}
|
||||
|
||||
void WatchFacePages::Weather::InitBoot()
|
||||
{
|
||||
}
|
||||
|
||||
void WatchFacePages::Weather::InitWake()
|
||||
{
|
||||
}
|
||||
|
||||
void WatchFacePages::Weather::DrawPage(bool partialRefresh)
|
||||
{
|
||||
m_display.setFullWindow();
|
||||
m_display.fillScreen(GxEPD_WHITE);
|
||||
m_display.display(partialRefresh);
|
||||
}
|
26
src/WatchFacePages/Weather.h
Normal file
26
src/WatchFacePages/Weather.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
#pragma once
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Page.h"
|
||||
#include "../WatchyDisplay.h"
|
||||
#include "../WatchFeatures/WatchFeatures.h"
|
||||
|
||||
namespace WatchFacePages
|
||||
{
|
||||
class Weather;
|
||||
}
|
||||
|
||||
class WatchFacePages::Weather : public WatchFacePages::Page
|
||||
{
|
||||
public:
|
||||
Weather(WatchyDisplay & display, WatchFeatures::WatchFeatures & features);
|
||||
void InitBoot() override;
|
||||
void InitWake() override;
|
||||
void DrawPage(bool partialRefresh = false) override;
|
||||
|
||||
private:
|
||||
|
||||
WatchyDisplay & m_display;
|
||||
WatchFeatures::WatchFeatures & m_features;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue