Esp8266 clock update

 

 

tmp_15687-IMG_20170430_0945171248615

Updated code with better graphics.  See gallery below for side by side.  The new library is the u8g2 library that has a lot of fonts but is more complicated to use than the standard Adafruit GFX library.

 

 

My biggest coding issue was that for the date, I couldn’t get the weekday to display.  I tried a ton of stuff before realizing that font only had numbers….duh!

Advertisements

3 Comments

  1. https://github.com/jumblies/WFM_NTP_OTA_u8g2_Clock_Nokia

    There it is. The only thing I still want to do is a DST change subroutine that stores the bool DST in EEPROM. There is some elegant code here:

    http://woodsgood.ca/projects/2015/03/13/daylight-saving-time-simplified/

    and although it actually adjusts the RTC, I think this can be applied to the results of NTP time at the time of display…at least that’s what I was thinking. Let me know if you have any other ideas.

    Like

    Reply

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s