G6EJD/ESP8266-NTP-time-on-an-OLED-with-WiFi-Manager

Geting 2 screens

Pedotech opened this issue · 8 comments

Great project, I am eager to really see the clock, but I get a "screen"
Dec
0-22485- Jan 70
2:0-12
(0-52) AM ((((counting down)))
DST-UKUSAAUS
Before this the oled very briefly displays what I think is the calendar and clock, but it is so rapid I don´t know is it is correct.
I don't really understand. I think it is some silly mistake of mine.
Thanks for your help, I would love to see the clock ticking!

G6EJD commented
  1. First off what is being displayed on the serial port. it should be saying connected to an IP address?
  2. Does it say Webserver started...
  3. Can you connect your browser to the IP address and does it respond? e.g. http://192.168.0.22/
G6EJD commented

IS the code your using as on Github 008g and no added Serial.println statements as the 1-sec ticker will not work with print statements in it.

I've just tried the code and it works fine with a Wemos DI and OLED, what parts are you using?

Are you using the display driver I provided as the Adafruit variant will not work with the small OLED from Wemos?

G6EJD commented

OK, I am assume it's still not working. This is what I did:

  1. Downloaded the code from Github.
  2. Extracted the 008g Version to a folder
  3. Extracted and copied adafruit_ssd1306 to overwrite the current adafruit_ss1306 .cpp and h files
  4. Compiled it uploaded it, works perfectly.

Now some questions for you:

  1. What size display are you using? 1.3, 0.96 or 0.64" it is designed for the 0.64" Wemos OLED display
  2. Are you using the correct adafruit_ssd1306 files, not the ones supplied by adafruit!
G6EJD commented

img_1742
I only get one screen, your getting two screens because the 0.96" OLED is 128x64 and the 0.64" is 64x32.

  1. Change the SSD1306 driver back to a working version for your setup. Test it.
  2. Change the time source from : NTPClient timeClient(time_udp);
    to: NTPClient timeClient(time_udp,"us.pool.time.org", TimeZone * 3600, 60000);

Choose a time server near you from: http://www.pool.ntp.org/en/

G6EJD commented

I presume you now have it running.