[HELP] Esp can't control OLED ssd1306 i2c

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
mqcrexcel
Posts: 7
Joined: Mon Apr 15, 2019 9:45 am

[HELP] Esp can't control OLED ssd1306 i2c

Post by mqcrexcel » Thu Apr 25, 2019 8:17 am

Hi body. I'm test the OLED ssd1306 with i2c communication. And using micropython-adafruit-ssd1306 library.
I'm put the main.py (link 1): http://codepad.org/jTxAhxA7
and ssd1306 (link2): https://github.com/…/micropython-ada…/b ... ssd1306.py
To the board , but the Oled not working .
Next, i using screen to text the code step by step, but when i type : ">>> oled = SSD1306_I2C(128, 64, i2c)" , it show me the notify :
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "ssd1306.py", line 117, in __init__
File "ssd1306.py", line 37, in __init__
File "ssd1306.py", line 62, in init_display
File "ssd1306.py", line 122, in write_cmd
OSError: [Errno 110] ETIMEDOUT
So. Where my error, and how to fix it. Thank you !!
Note: I'm testing WITHOUT Oled.

Image

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: [HELP] Esp can't control OLED ssd1306 i2c

Post by Roberthh » Thu Apr 25, 2019 8:43 am

Note: I'm testing WITHOUT Oled.
If you are testing without OLED, then it's no surprise that you get that error, which says "Cannot talk to the OLED".
Fixing that is obvious!

mqcrexcel
Posts: 7
Joined: Mon Apr 15, 2019 9:45 am

Re: [HELP] Esp can't control OLED ssd1306 i2c

Post by mqcrexcel » Thu Apr 25, 2019 9:53 am

Roberthh wrote:
Thu Apr 25, 2019 8:43 am
Note: I'm testing WITHOUT Oled.
If you are testing without OLED, then it's no surprise that you get that error, which says "Cannot talk to the OLED".
Fixing that is obvious!
Thank You. I will test with in Oled latter

Post Reply