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!
- First off what is being displayed on the serial port. it should be saying connected to an IP address?
- Does it say Webserver started...
- Can you connect your browser to the IP address and does it respond? e.g. http://192.168.0.22/
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?
OK, I am assume it's still not working. This is what I did:
- Downloaded the code from Github.
- Extracted the 008g Version to a folder
- Extracted and copied adafruit_ssd1306 to overwrite the current adafruit_ss1306 .cpp and h files
- Compiled it uploaded it, works perfectly.
Now some questions for you:
- What size display are you using? 1.3, 0.96 or 0.64" it is designed for the 0.64" Wemos OLED display
- Are you using the correct adafruit_ssd1306 files, not the ones supplied by adafruit!
I only get one screen, your getting two screens because the 0.96" OLED is 128x64 and the 0.64" is 64x32.
- Change the SSD1306 driver back to a working version for your setup. Test it.
- 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/
I presume you now have it running.