Closed zangaby closed 6 years ago
As seen on the product page OLED's SDA and SCL connect to the D1 pin and the D2 pin respectively
so it's not a pins assignment problem, you'll probably have to adapt the code in A_Config.h and select the correct display driver.
Thank you for your reply!
I set
#define USE_DISPLAY true // default display setting
and
#define DEAUTHER_DISPLAY SSD1306Wire display = SSD1306Wire(0x3c, D1, D2); // for 0.96" OLED
But no luck yet.
Please post the different approaches you've tried to make it work i.e. try all config files one after another and note the results. Also see what board you've selected from the Arduino tools menu and maybe try another one?
This is what I tried so far WemosD1 board D1, D2 5, 4
Generic Board 8266 Getting error when trying to compile: Multiple libraries were found for "Adafruit_NeoPixel.h"
NodeMCU board Same as with the WemosD1
The message "multiple libraries were found..." is not an error but a warning, but this board looks like a bad quality clone and from the comments there are a few pinout issues you need to solve first.
First get your OLED to work alone, without the deauther (e.g. run the demo sketch from the SSD1306 library) and when you have it working, note down the pinout it's using.
Also the output of this may change depending on the board you select:
Serial.print(D1);
Serial.print(D2);
Serial.print(SDA);
Serial.print(SCL);
Thank you, I tried running the demo sketch, and it's working with
SSD1306Wire display(0x3c, D1, D2);
The selected board was Wemos D1 mini.
On he serial I see: D1 5 D2 4 SDA 4 SCL 5
have you tried the DStike board from the boards menu?
Just tried now, still no display.
can you paste the content of your A_Config.h on pastebin, I'll tag this issue hoping someone with the same problem came up with a solution.
it really sounds like some pin assignment is messing it up so we'll see
Have you tried set display true
and save
over serial and restart the device ?
The A_Conifig.h I am currently using is this one: A_Conifig.h
Will try to set it thru the serial as soon as I get home.
SUCCESS ! :+1:
Thanks a lot !
hi @tobozo ,
i am having the same issue. working with library sample code with D1 D2 but not getting display with your code changes... i have tried all the things tried above..
@zangaby just want to know that what made ur code working? what was the final solution?
@mayurpatelgec there's no "one solution fits all" situation, but there are troubleshooting steps to find out what's happening, and standard procedures to sort that out.
maybe try to get the OLED working with a simple example sketch first? repeat with the buttons, the internal led, and so on ... that will help you isolate any pinout issue.
when you're sure what the pinout is you can take the values to your A_Config.h file
@tobozo hi thanks fr reply...
i know the pinout // 5 -> SDA // 4 -> SCL
https://github.com/ThingPulse/esp8266-oled-ssd1306/blob/master/examples/SSD1306ClockDemo/SSD1306ClockDemo.ino
i am running code of sample weather station with display without any problem with same code like
SSD1306Wire display(0x3c, 5, 4);
with code
const int SDA_PIN = 5;
const int SDC_PIN = 4;
but no luck when i try with your code... with 5 as SDA and 4 as SCL
@mayurpatelgec my code ? what sketch are you talking about ? this is @spacehuhn's repository, not mine :rofl:
please make sure you don't use vague terms such as "no luck" or "i am having the same issue" as this can lead to confusion and it doesn't help you get the problem sorted.
having the same issue does not imply the same cause, and having no luck is subjective
For me set display true
and save
over serial as spacehuhn suggested was the solution.
@zangaby hi..
can u explain a bit more how can i save over serial?
You open the serial console in the Arduino IDE, you enter the set display command
set display true
then you enter the save
command to save everything. Afterwards you restart the device.
ok thank u @zangaby ..!! i will try and post the updates..
Hello,
I have this board https://www.banggood.com/Wemos-D1-Esp-Wroom-02-Motherboard-ESP8266-Mini-WiFi-NodeMCU-Module-p-1224577.html which was working great on version 1.6, now I tried to flash the new version and even though the web interface is working, unfortunately the OLED display no longer works.
I set USE_DISPLAY to true and DEAUTHER_DISPLAY SSD1306Wire display but no luck.
Any thoughts on what I could be missing ? Thanks !