forked from wuspy/portal_calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDisplay.h
36 lines (32 loc) · 990 Bytes
/
Display.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "Arduino.h"
#include "DisplayGDEW075T7.h"
#include "resource/image.h"
#include "global.h"
#ifdef SHOW_WEATHER
#include "weather.h"
#endif
#ifndef PORTALCALENDAR_DISPLAY_H
#define PORTALCALENDAR_DISPLAY_H
class Display
{
public:
Display();
~Display();
void error(std::initializer_list<String> messageLines, bool willRetry);
void update(const tm *now);
#ifndef SHOW_WEATHER
void testChamberIcons();
#endif // SHOW_WEATHER
private:
void init();
#ifdef SHOW_WEATHER
const Image* getWeatherConditionIcon(WeatherCondition condition, bool day);
void drawWeatherInfoText(const char* text, const Image* symbol, int32_t x, int32_t y);
void drawDailyWeather(const DailyWeather& weather, int32_t x);
void drawWeatherEntry(const WeatherEntry& weather, int32_t x);
#else
void drawChamberIcon(const Image& icon, int32_t x, int32_t y);
#endif // SHOW_WEATHER
DisplayGDEW075T7 *_display;
};
#endif // PORTALCALENDAR_DISPLAY_H