updated u8g2 library and set time for NZDST timezone
This commit is contained in:
parent
3681b45183
commit
f341cae329
1 changed files with 2 additions and 4 deletions
|
|
@ -44,7 +44,7 @@ bool doSunsetCalcs = true;
|
|||
bool locationDataSet = false;
|
||||
|
||||
//sunset setup
|
||||
int tzOff = 12; //local TZ offset
|
||||
int tzOff = 13; //local TZ offset
|
||||
bool centuryBit; //needed to get month from RTC
|
||||
double az, elev; //for sun location in the sky
|
||||
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() {
|
||||
//Screen setup
|
||||
buf = (uint8_t *)malloc(u8g2.getBufferSize());
|
||||
u8g2.setBufferPtr(buf);
|
||||
u8g2.initDisplay();
|
||||
u8g2.begin();
|
||||
u8g2.clearDisplay();
|
||||
u8g2.setPowerSave(0);
|
||||
u8g2.setFont(u8g2_font_ncenB14_tr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue