43 lines
1.6 KiB
C++
43 lines
1.6 KiB
C++
#ifndef Designer_h
|
|
#define Designer_h
|
|
#include <Arduino.h>
|
|
#include "Ecran.h"
|
|
#include "Meteo.h"
|
|
#include "Connect.h"
|
|
#include "Domoticz.h"
|
|
#include "Timer.h"
|
|
|
|
#define RTCMEMORYSTART 65
|
|
|
|
class Designer {
|
|
public :
|
|
Designer(Ecran * ecran, Meteo * meteo, Connect * connect, Domoticz * domoticz, Timer * _timer);
|
|
void displayWeather(int boucle); // 7.5" e-paper display is 800x480 resolution
|
|
private:
|
|
void displayGeneralInfoSection();
|
|
void displayMainWeatherSection(int x, int y);
|
|
void displayDisplayWindSection(int x, int y, float angle, float windspeed, int Cradius);
|
|
void displayTemperatureSection(int x, int y, int twidth, int tdepth);
|
|
void displayForecastTextSection(int x, int y , int fwidth, int fdepth);
|
|
void displayPressureSection(int x, int y, float pressure, String slope, int pwidth, int pdepth);
|
|
void displayPrecipitationSection(int x, int y, int pwidth, int pdepth);
|
|
void displayAstronomySection(int x, int y);
|
|
void displayForecastSection(int x, int y, int fwidth, int height);
|
|
void displayForecastWeather(int x, int y, int fwidth, int height, int index);
|
|
void displayConditionsSection(int x, int y, String IconName, bool IconSize);
|
|
void displayStatusSection(int x, int y);
|
|
void displayWindSection(int x, int y, float angle, float windspeed, int Cradius);
|
|
String WindDegToDirection(float winddirection);
|
|
void Nodata(int x, int y, bool IconSize, String IconName);
|
|
void DrawBattery(int x, int y, float scale);
|
|
public :
|
|
Ecran *ecran;
|
|
Meteo *meteo;
|
|
Connect * connect;
|
|
Domoticz * domoticz;
|
|
Timer * timer;
|
|
int boucle = 0;
|
|
};
|
|
|
|
#endif
|