SSD1306 component add an address

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
stefan.erni
Valued Contributor
Posts: 709
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 147 times
Been thanked: 164 times

SSD1306 component add an address

Post by stefan.erni »

Hi Ben

There is a small Display with a SSD1306 controller
and a Flowcode component SSD1306 I2C

Unfortunately I cannot change the I2C address to 0x3C.
would it be possible to adapt the components with this address?

regards
Stefan


Communication Protocols: I2C
IC: SSD1306
I2C Address: 0x3C
Dimensions: 50.3 x 15.1mm

Snag_a97bf27.png
Snag_a97bf27.png (92.5 KiB) Viewed 3286 times
Infos:
https://www.sparkfun.com/products/17153
Component propertis:
Snag_a9e73d4.png
Snag_a9e73d4.png (25.34 KiB) Viewed 3286 times
Adapter Groove to Stemma cable available for little money....:
Snag_aa7a160.png
Snag_aa7a160.png (372.68 KiB) Viewed 3286 times

medelec35
Matrix Staff
Posts: 1373
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 488 times
Been thanked: 440 times

Re: SSD1306 component add an address

Post by medelec35 »

Hi Stefan.
0x3C is bit shifted 0x78 (0).
Can you see if that works for the display?

You could confirm the address with I2C address scanner
Martin

stefan.erni
Valued Contributor
Posts: 709
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 147 times
Been thanked: 164 times

Re: SSD1306 component add an address

Post by stefan.erni »

Hi Martin

I can see the bit shifted but it's not working if I use address 0x78.
Before i tested an another big display (old) with 0x78 and this is working.
Snag_b1692dd.png
Snag_b1692dd.png (5.14 KiB) Viewed 3274 times

medelec35
Matrix Staff
Posts: 1373
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 488 times
Been thanked: 440 times

Re: SSD1306 component add an address

Post by medelec35 »

Have you tried the scanner?
For ESP32, you will need to use it in software mode.
Or use it with Arduino Uno
Martin

stefan.erni
Valued Contributor
Posts: 709
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 147 times
Been thanked: 164 times

Re: SSD1306 component add an address

Post by stefan.erni »

Yes, but what does this mean?
The new Display has the same address 0x78 but an another reason why it's dark?
Attachments
Snag_b40dc8c.png
Snag_b40dc8c.png (38.82 KiB) Viewed 3268 times

medelec35
Matrix Staff
Posts: 1373
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 488 times
Been thanked: 440 times

Re: SSD1306 component add an address

Post by medelec35 »

hi Stefan.
That does suggest that 0x78 selected for the display is correct.
Within initialise routine this is used for the address:

Code: Select all

Address >> 1
Since Address is 0x78 then 0x78>>1 = 0x78/2 = 0x3C
Therefore, adding different addresses won't work.
Have you tried in software mode?
Although you did state an older display does work, which suggests I2C is working OK.
Martin

stefan.erni
Valued Contributor
Posts: 709
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 147 times
Been thanked: 164 times

Re: SSD1306 component add an address

Post by stefan.erni »

Hi Martin

Yes I agree :Therefore, adding different addresses won't work.

I'll see if I can organize another type display with the SSD1306
controller and a second display from sparkfun

maybe the other display will work soon...
https://flowcode.co.uk/forums/viewtopic.php?f=5&t=2267

strange the display that works has a different controller(not a SSD1306) but i can read the text.
https://wiki.seeedstudio.com/Grove-OLED ... _1.12inch/
SSD1327 to SH1107G

Post Reply