lexus2k / ssd1306

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

ESP-01 #61

Closed MBlackmagic closed 5 years ago

MBlackmagic commented 5 years ago

Hi,

first great library, thank you very much.

Is it possible to integrate a function to assign the i2c pins separately, the esp-01 unfortunately doesn't have the pins 4 & 5.

lexus2k commented 5 years ago

Hi,

Which lcd display are you using? If it is ssd1306 oled, then there is ssd1306_128x64_i2c_initEx() api, which allows to use any pins, you need. From the library sources, the function I pointed above is implemented like this:

void    ssd1306_128x64_i2c_initEx(int8_t scl, int8_t sda, int8_t sa)
{
    ssd1306_i2cInitEx(scl, sda, sa);
    ssd1306_128x64_init();
}
MBlackmagic commented 5 years ago

Hi,

thank you very much for your help.