ESP Easy v. 2.0 - SSD1306

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
FreddyPL
Normal user
Posts: 11
Joined: 19 Jan 2018, 07:57
Location: Poland, Krakwo

ESP Easy v. 2.0 - SSD1306

#1 Post by FreddyPL » 19 Jan 2018, 08:45

Hi,
I ask You for some help.
Is it possible, to add new SSD1306 addresses 0x78 (0x7A) ?
I have many OLED displays with this address, and there is many such displays on Aliexpress

REgards Freddy
----
Regards, Freddy

TD-er
Core team member
Posts: 8749
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESP Easy v. 2.0 - SSD1306

#2 Post by TD-er » 19 Jan 2018, 14:03

Sounds like a valid request :)
Can you please add an issue about it on de Github? https://github.com/letscontrolit/ESPEasy/issues

User avatar
FreddyPL
Normal user
Posts: 11
Joined: 19 Jan 2018, 07:57
Location: Poland, Krakwo

Re: ESP Easy v. 2.0 - SSD1306

#3 Post by FreddyPL » 19 Jan 2018, 14:14

Yeah OK - issue added
Last edited by FreddyPL on 19 Jan 2018, 14:17, edited 1 time in total.
----
Regards, Freddy

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: ESP Easy v. 2.0 - SSD1306

#4 Post by vader » 19 Jan 2018, 14:17

Check this out about this...
http://wiki.modtronix.com/doku.php?id=t ... ed_ssd1306

The OLED has a solder jumper at the back for configuring the I2C address.

When jumper is set to default setting of 0x78, use 0x3C in code
When jumper is set to 0x7A, use 0x3D in code

The reason for these contradicting addresses are the way Arduino interprets I2C addresses. By default, I2C use 7-bit addresses, but Arduino converts that to an 8-bit value by shifting the bits one position to the left. So, the SSD1306 datasheet says that the slave address is a 7-bit code that can be either 0x3C (0011-1100) or 0x3D (0011-1101), based on the SAO bit (set to hardware jumper). For Arduino:

0x3C (0011-1100) is shifted 1 bit right, and becomes 0x78 (0111-100)
0x3D (0011-1101) is shifted 1 bit right, and becomes 0x7A (0111-1010)

User avatar
FreddyPL
Normal user
Posts: 11
Joined: 19 Jan 2018, 07:57
Location: Poland, Krakwo

Re: ESP Easy v. 2.0 - SSD1306

#5 Post by FreddyPL » 19 Jan 2018, 14:19

I'm not using Arduino, and i have'nt Arduino
I want to use any ESPEasy for this
When jumper is set to default setting of 0x78, use 0x3C in code
It doesn't work :)
----
Regards, Freddy

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: ESP Easy v. 2.0 - SSD1306

#6 Post by vader » 19 Jan 2018, 14:23

Ok, when you are able to compile your own version, it should not be an act to change the addresses in the source code.

User avatar
FreddyPL
Normal user
Posts: 11
Joined: 19 Jan 2018, 07:57
Location: Poland, Krakwo

Re: ESP Easy v. 2.0 - SSD1306

#7 Post by FreddyPL » 19 Jan 2018, 14:32

Unfortunately, I do not have a C compiler and I do not know C completely.
Can you compile this for me?
So far I have used the ESPEasy_v2.0.0-dev9_normal_4096.bin version

Maybe you could create additional choices in config, there is a lot of such OLED with addresses 0x78 on aliexpress
most of them have addresses 0x78
Look here

Will be added to new issue :)
----
Regards, Freddy

TD-er
Core team member
Posts: 8749
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESP Easy v. 2.0 - SSD1306

#8 Post by TD-er » 19 Jan 2018, 14:36

If you do an I2C scan from ESPeasy. What addresses show up?
And try to remove/disconnect other I2C devices during the scan.

User avatar
FreddyPL
Normal user
Posts: 11
Joined: 19 Jan 2018, 07:57
Location: Poland, Krakwo

Re: ESP Easy v. 2.0 - SSD1306

#9 Post by FreddyPL » 19 Jan 2018, 15:10

0x3C PCF8574A OLED :)

It's working, when I change devices to to "SSD1306 framed"
But it's good idea to add new adresses, or add comment to devices list
----
Regards, Freddy

TD-er
Core team member
Posts: 8749
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESP Easy v. 2.0 - SSD1306

#10 Post by TD-er » 20 Jan 2018, 13:44

The other OLED plugin does not support as many devices.
The framed OLED plugin uses a separate library, which also supports the larger OLED displays (with SH1106 chips), at least on the Mega branch.

User avatar
FreddyPL
Normal user
Posts: 11
Joined: 19 Jan 2018, 07:57
Location: Poland, Krakwo

Re: ESP Easy v. 2.0 - SSD1306

#11 Post by FreddyPL » 22 Jan 2018, 17:22

Thanks for all.
----
Regards, Freddy

Post Reply

Who is online

Users browsing this forum: No registered users and 49 guests