54 lines
1.3 KiB
C
54 lines
1.3 KiB
C
#pragma once
|
|
#include "meteofrance.h"
|
|
#include "esp_lvgl_port.h"
|
|
#include "bsp/esp-bsp.h"
|
|
|
|
void app_main_display();
|
|
void app_ota_display();
|
|
void setOTAProgress(int value);
|
|
void init_display();
|
|
|
|
bool display_lock(const char *TAG);
|
|
|
|
void display_unlock(const char *TAG);
|
|
|
|
void meteo_obs_cb(lv_observer_t *observer, lv_subject_t *subject);
|
|
|
|
void showMeteoIcon(const char *icon, lv_obj_t *desc_icon, int childNr);
|
|
|
|
void draw_tabVolets();
|
|
void draw_ihm();
|
|
|
|
void weather_data_retreived_start();
|
|
|
|
void weather_data_retreived(meteodailyforecast_data dailyDatas[3], meteoforecast_data datas[3]);
|
|
|
|
void draw_tabMeteo(lv_obj_t * parent);
|
|
|
|
void tabChgEvt(lv_event_t *event);
|
|
|
|
void draw_tabCuve(lv_obj_t * parent);
|
|
void draw_tabHome(lv_obj_t * parent);
|
|
void draw_tabSettings(lv_obj_t * parent);
|
|
|
|
typedef enum eIHMEvent_t{
|
|
IHM_EVT_WIFI_STATUS,
|
|
IHM_EVT_TIME_SETTED,
|
|
IHM_EVT_OTA_STARTED,
|
|
IHM_EVT_OTA_PROGRESS,
|
|
IHM_EVT_HUMID_TEMP,
|
|
IHM_EVT_PUISSANCE_EMISE,
|
|
IHM_EVT_ETAT_MACHINE,
|
|
IHM_EVT_HAUTEUR_CUVE,
|
|
} eIHMEvent_t;
|
|
|
|
typedef struct IHM_EVENT
|
|
{
|
|
eIHMEvent_t eEventType; /* Tells the receiving task what the event is. */
|
|
void *pvData; /* Holds or points to any data associated with the event. */
|
|
bool bNeedToFreeData; // ← Important !
|
|
} xIHMEvent_t;
|
|
|
|
|
|
void drawIhm(void *pvParameter);
|