#include <Adafruit_ILI9341.h>
#include <Adafruit_GFX.h>
//#include <Orbitron_Medium_40.h>
#include <Orbitron_Bold_20.h>
#include <Roboto_Condensed_Light_Italic_24.h>
#include <SHT31.h>
//#include <weather_icons.h>
//SYSTEM_MODE(MANUAL);
//SYSTEM_THREAD(ENABLED);
//SerialLogHandler logHandler(LOG_LEVEL_TRACE);
//RGB565 custom colors
#define COLOR_PINK 0xf816
#define COLOR_LIME 0x87e0
#define COLOR_PEACH 0xfd89
/****************
*****************
Pin assignment
*****************
Display Boron
SDA MOSI
SCL SCK
RES A5
DC A4
*****************
*****************/
#define TFT_CS 15 // The display I'm using does not have a CS pin, if yours does, assign a pin to it here
#define TFT_RST 4
#define TFT_DC 2
//#define LED_BLUE D7
//#define LED_RED A0
// For 1.14", 1.3", 1.54", 1.69", and 2.0" TFT with ST7789:
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
//SHT31 sht31 = SHT31();
//If you are using the Photon 2, please comment out the following since Photon 2 does not have a fuel gauge
//FuelGauge fuel;
char num = 0;
char number[8];
const float Pi = 3.14159265359;
GFXcanvas16 timeCanvas(240,110);
GFXcanvas16 temperatureCanvas(240,40);
String todayHigh,todayLow,dayoneHigh,dayoneLow,daytwoHigh,daytwoLow,daythreeHigh,daythreeLow;
String todayForecast,dayoneForecast,daytwoForecast,daythreeForecast;
unsigned long previousMillis = 0; // will store last time LED was updated
// constants won't change:
const long interval = 1000; // milliiseconds
const long pubinterval = 600; //interval at which to publish in seconds. this is done by counting number of intervals
unsigned long intervalcount = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}