ESP Easy v. 2.0 - SSD1306
Moderators: grovkillen, Stuntteam, TD-er
ESP Easy v. 2.0 - SSD1306
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
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
Regards, Freddy
Re: ESP Easy v. 2.0 - SSD1306
Sounds like a valid request 
Can you please add an issue about it on de Github? https://github.com/letscontrolit/ESPEasy/issues

Can you please add an issue about it on de Github? https://github.com/letscontrolit/ESPEasy/issues
Re: ESP Easy v. 2.0 - SSD1306
Yeah OK - issue added
Last edited by FreddyPL on 19 Jan 2018, 14:17, edited 1 time in total.
----
Regards, Freddy
Regards, Freddy
Re: ESP Easy v. 2.0 - SSD1306
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)
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)
Re: ESP Easy v. 2.0 - SSD1306
I'm not using Arduino, and i have'nt Arduino
I want to use any ESPEasy for this
I want to use any ESPEasy for this
It doesn't workWhen jumper is set to default setting of 0x78, use 0x3C in code

----
Regards, Freddy
Regards, Freddy
Re: ESP Easy v. 2.0 - SSD1306
Ok, when you are able to compile your own version, it should not be an act to change the addresses in the source code.
Re: ESP Easy v. 2.0 - SSD1306
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
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
Regards, Freddy
Re: ESP Easy v. 2.0 - SSD1306
If you do an I2C scan from ESPeasy. What addresses show up?
And try to remove/disconnect other I2C devices during the scan.
And try to remove/disconnect other I2C devices during the scan.
Re: ESP Easy v. 2.0 - SSD1306
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

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
Regards, Freddy
Re: ESP Easy v. 2.0 - SSD1306
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.
The framed OLED plugin uses a separate library, which also supports the larger OLED displays (with SH1106 chips), at least on the Mega branch.
Who is online
Users browsing this forum: No registered users and 20 guests