-
Notifications
You must be signed in to change notification settings - Fork 637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not run on Wemos D1 mini with SSD1306 128x64 #240
Comments
Hi, it's working for me with 0x3c, D2, D1 |
Exactly the same device in both cases. I just change the sketches are are running :/. Adafruit works everytime. |
I also have a D1 and have it working (https://github.com/stirobot/oledBoostGaugeWithNeopixel/blob/master/oledBoostGaugeWithNeopixel.ino) (The sensor is not working by the way because it expects 5V not 3.3V).
|
@emilekm2142 it must be something else in your code then. What do you do after |
Just an unedited
Images.h
Though, in Adafruit's demo ( https://github.com/adafruit/Adafruit_SSD1306/blob/master/examples/ssd1306_128x32_i2c/ssd1306_128x32_i2c.ino) I had to replace
with
To make it work. Leaving it unedited did not result in |
This works for me on all of my WeMos's including D1 mini. on pins D1 & D2
|
@emilekm2142 Did you ever get the SSD1306 Wemos D1 project working? I have had the same problem. Others seem to have it solved? Using Arduino's i2c_scanner.ino I was finally able to see one I2C device on address 3C. Been working on this all day and have tried several SSD1306's, several D1 Mini's, and even tried a bare ESP12F. Then I used different power supplies as the ESP's are finicky about power. Nothing. Frustrating. |
Solved my problem. Hope this helps others. There were several things I learned from this forum above (thanks everybody). Here is what I learned:
Today's problems were a comedy of these errors but once I got one screen/ESP/program working then I was able to test all screens, several wemos d1 mini boards, stand alone ESP12F chip, another development board and my IDE to make sure they all work. It has been a long day. I hope this helps save other readers some time. |
I could not get mine to work. Getting a new display and a new esp solved the problem. It is up to one's luck I think :< |
Thanks for the reply. Finally, I did get mine to work – I think I had a bum display and that cost me most of the day! I documented my finding on the forum for others. But the main problem was that 2 of 6 of my displays were not working. You are right, it is up to one’s luck. But once I got a working set I was able to verify and test the esp’s and the ssd1306’s. I threw the bad ones away!
|
Had the same issue, turns out that using D0, D1, Dpin pin mappings causes the lib to die for some reason. Whereas I used the direct GPIO pin numbers. I changed to on my board there is apparently a pull up on 0 but it didn't break the display. I tried several I2C libraries, had no luck until I did this. |
Gordon, glad you found something that works. In my case I know the library pin assignments were okay because some displays worked... some didn't. I used the same ESP and same sketch to drive the SSD1306's. |
@emilekm2142, Close The Issue please! |
@RevoluPower |
@bigStanS solution worked for me. But this also worked for me using a different method:
|
Go home ESP you are drunk. I came here to find out why my display doesn't work. Tried several solutions mentioned here but with no success. However, during the last attempt to make things work, I forgot to change my wiring, but it turned out that this mistake led to the solution of my problem. Despite declaring pins D4 and D3 for my SDA and SCL my wires are connected to D1 and D2 and it works. When I plug my wires to pin D4 and D3 my display does not work as same as setting pins D1 and D2 in my source code. Weird!
|
Thank you for your post, my setup was not working on default SDA and SCL pins, but when I changed to D4 and D3 it worked, even if it's physically connected to D1a nd D2. |
Hi. I have this board - https://wiki.wemos.cc/products:d1:d1_mini It's D1 pin is labeled as SCL and D2 as SDA. I also have a 128x64 screen with SSD1306 driver.
I followed the guide here -> http://automatedhome.party/2017/04/17/connect-an-inexpensive-oled-display-to-a-esp8266wemos-d1-mini/ and made it work. After that I had realized that Adafruit library is very slow and poor.
I tried to run this library but did not succeed. Every single pin setting I had tried came out wrong
SSD1306Wire display(0x3c, 4, 5);
SSD1306Wire display(0x3c, D2, D1);
SSD1306Wire display(0x3c, D1, D2);
SSD1306Wire display(0x3c, D3, D5);
Changing
0x3c
to0x3d
did not work either. In all these cases nothing happens, just as if the pins were set up wrong :/But Adafruit library did work. Does anyone know what is going on?
The text was updated successfully, but these errors were encountered: