I2C OLED address not used

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
alsar
Posts: 5
Joined: Thu Feb 27, 2020 2:51 am

I2C OLED address not used

Post by alsar » Fri Mar 27, 2020 7:39 am

I'm using an OLED 128x64 I2C type with ESP32. SSD1306 library module is used. After initiating i2c object, i2c.scan() returns a decimal 60 address. But I do not see anywhere this address is used. What if I used more than one i2c device on the bus.
Is it not needed to use address to access an i2c device?

User avatar
mcauser
Posts: 507
Joined: Mon Jun 15, 2015 8:03 am

Re: I2C OLED address not used

Post by mcauser » Fri Mar 27, 2020 8:16 am

Here it is:
https://github.com/micropython/micropyt ... 06.py#L105

0x3c is decimal 60.

If you want to use two of these displays on the same i2c bus, check if the oled module has any address select resistors on the back.

alsar
Posts: 5
Joined: Thu Feb 27, 2020 2:51 am

Re: I2C OLED address not used

Post by alsar » Fri Mar 27, 2020 10:15 am

Thank you. I too use the same library. My doubt is suppose I have 2 devices with 0x3C & 0x78 address. How could I display data in that particular device? 0x3C address is already in library ,0x78 how to initialize?

Post Reply