updated u8g2 library and set time for NZDST timezone

This commit is contained in:
Seth Samuel 2024-12-26 21:42:27 +13:00
parent 3681b45183
commit f341cae329

View file

@ -44,7 +44,7 @@ bool doSunsetCalcs = true;
bool locationDataSet = false; bool locationDataSet = false;
//sunset setup //sunset setup
int tzOff = 12; //local TZ offset int tzOff = 13; //local TZ offset
bool centuryBit; //needed to get month from RTC bool centuryBit; //needed to get month from RTC
double az, elev; //for sun location in the sky double az, elev; //for sun location in the sky
double transit, sunrise, sunset; //sun related times double transit, sunrise, sunset; //sun related times
@ -109,9 +109,7 @@ void connectGPS() { //need to do this everytime the GPS turns back on
void setup() { void setup() {
//Screen setup //Screen setup
buf = (uint8_t *)malloc(u8g2.getBufferSize()); u8g2.begin();
u8g2.setBufferPtr(buf);
u8g2.initDisplay();
u8g2.clearDisplay(); u8g2.clearDisplay();
u8g2.setPowerSave(0); u8g2.setPowerSave(0);
u8g2.setFont(u8g2_font_ncenB14_tr); u8g2.setFont(u8g2_font_ncenB14_tr);