Files
Arduino/ESP32_WAVESHARE_7x5/common.h
Jérôme Delacotte 7b30d6e298 first commit
2025-03-06 11:15:32 +01:00

62 lines
2.0 KiB
C

#ifndef COMMON_H_
#define COMMON_H_
#include <Arduino.h>
#include <ArduinoJson.h>
#include "HTTPClient.h"
// #include <WiFiClient.h>
#include "forecast_record.h"
#include "common_functions.h"
#include "Trad.h"
// #include "ArialRounded.h"
//#include "fonts.h"
#define autoscale_on true
#define autoscale_off false
#define barchart_on true
#define barchart_off false
//################ VERSION ###########################################
#define VERSION "18.00" // Programme version, see change log at end
//################ VARIABLES ###########################################
#define debug true
#define Large 17 // For icon drawing, needs to be odd number for best effect
#define Small 6 // For icon drawing, needs to be odd number for best effect
#define MOON_DIAMETER 27
// Max reading for weather, counters and graph series
#define max_readings 24
#define LargeIcon true
#define SmallIcon false
#define Language "FR" // NOTE: Only the weather description is translated by OWM
// Examples: Arabic (AR) Czech (CZ) English (EN) Greek (EL) Persian(Farsi) (FA) Galician (GL) Hungarian (HU) Japanese (JA)
// Korean (KR) Latvian (LA) Lithuanian (LT) Macedonian (MK) Slovak (SK) Slovenian (SL) Vietnamese (VI)
#define hemisphere "north" // or "south"
#define Units "M" // Use 'M' for Metric or I for Imperial
#define FORECAST_HORIZON 5
#define FORECAST_WIDTH 78
#define FORECAST_HEIGHT 83
#define SHOW_MOON_IN_FORECAST false
#define DRAW_MOON_IN_CONDITION true
#define FONT_08 u8g2_font_helvB08_tf
#define FONT_10 u8g2_font_helvB10_tf
#define FONT_12 u8g2_font_helvB12_tf
#define FONT_14 u8g2_font_helvB14_tf
#define FONT_18 u8g2_font_helvB18_tf
#define FONT_24 u8g2_font_helvB24_tf
#define FONT_36 u8g2_font_fub42_tf
//#define FONT_36 ArialRoundedMTBold_36
//#define FONT_36 Crushed_Plain_36
#endif /* ifndef COMMON_H_ */