Hi Robert,

I suggest you to verify if all needed options for SSD1306 are met, you
can compare with other boards, i.e.:

arm/rp2040/raspberrypi-pico-w/configs/ssd1306/defconfig

Also you can enable the i2ctool (CONFIG_SYSTEM_I2CTOOL) to scan your
I2C bus to confirm the I2C OLED address.

BR,

Alan

On 11/9/22, Robert Alexa <robertalexa2...@gmail.com> wrote:
> Hi,
>
> I'm trying to set up an OLED SSD1306 128x32 display with an ESP32-Wrover
> board. The display module is connected through I2C and has only 4 pins
> exposed: SCL, SDA, VCC, GND.
>
> My custom config file starts from an esp32-wrover-kit:nsh to which I added:
> CONFIG_LCD=y
> CONFIG_LCD_DEV=y
> CONFIG_LCD_SSD1306_CUSTOM=y
> CONFIG_LCD_SSD1306_CUSTOM_DEV_NATIVE_XRES=128
> CONFIG_LCD_SSD1306_CUSTOM_DEV_NATIVE_YRES=32
> CONFIG_LCD_SSD1306_CUSTOM_DEV_XOFFSET=0
> CONFIG_LCD_SSD1306_CUSTOM_DEV_PAGES=4
> CONFIG_LCD_SSD1306_CUSTOM_DEV_CMNPAD=2
> CONFIG_LCD_SSD1306=y
> CONFIG_SSD1306_NUMDEVS=1
>
> However, I'm encountering an issue at boot time regarding the I2C block
> transfer.
> ssd1306_setpower: power: 1 [0]
> ssd1306_sendblk: ERROR: I2C_TRANSFER failed: -116
> board_lcd_initialize: Bound I2C0 to OLED 0
> ssd1306_setpower: power: 1 [0]
> ssd1306_getplaneinfo: planeno: 0 bpp: 1
>
> Interesting enough, it seems like the single transfer (ssd1306_sendbyte) is
> working fine, the problem is only with the block transfer. Do you have any
> ideas what might cause this?
>
> Regards,
> Robert
>

Reply via email to