lexus2k / ssd1306

Driver for SSD1306, SSD1331, SSD1351, IL9163, ILI9341, ST7735, PCD8544, Nokia 5110 displays running on Arduino/ESP32/Linux (Rasperry) platforms
MIT License
651 stars 125 forks source link

I2C definition for ESP32 Espressif #152

Closed kuzmanzs closed 1 year ago

kuzmanzs commented 1 year ago

Hi,

I would like to use your display library. I have ESP32 expressif project with a make file.

I got following warning (and dispaly does not show anything)

warning: the default selection I2S (undefined) of (defined at main/Kconfig.projbuild:23) is not contained in the choice

It tried to define silly in my "Kconfig.projbuild" but it does not work: menuconfig I2C string "SDA" default "21" string "SDL" default "22" endmenu

What would the proper way to define it?

lexus2k commented 1 year ago

@kuzmanzs

hello. I2S or I2C ? What is the exact error message?

kuzmanzs commented 1 year ago

it is I2C with 0.96" Oled display.

I have only this warning: "warning: the default selection I2S (undefined) of (defined at main/Kconfig.projbuild:23) is not contained in the choice"

Actually the firmware builds, but display does not show anything. I have put some text on it from the examples. I have connected my display to default SDA(21)/SCL(22) /ESP32 Expressif/ and power. With Arduino framework it works well (in the past).

Hmm, yes you are right it is I2S warning and not I2C.. I am not big expert at ESP IDF area, maybe should I "enable" I2C in menuconfig?

I have sdkconfig and Kconfig..

UPDATE: sorry with this works well ssd1306_128x64_i2c_initEx(GPIO_NUM_22,GPIO_NUM_21,60); //3C

UPDATE2: it works well with ssd1306_128x64_i2c_init() with default pins .. -> I had contact issues on my breadboard

your lib is great :)

kuzmanzs commented 1 year ago

thx for the lib