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

GPIO 0 doesn't work. #128

Open alexmaron81 opened 3 years ago

alexmaron81 commented 3 years ago

I would like to control the ssd1351 via SPI. What would the main.c look like for this?

lexus2k commented 3 years ago

Hi,

As pointed on the main page in the section "Setting up":

For esp32:

    * Download source from https://github.com/lexus2k/ssd1306
    * Put downloaded sources to components/ssd1306/ folder.
    * Compile your project as described in ESP-IDF build system documentation
alexmaron81 commented 3 years ago

That's what I did too. But I have now found out that the GPIO 0 did not work for the CS pin in the ESP-IDF. I took a different pin for it. It's running now

lexus2k commented 3 years ago

Oh, that's the bug. I will try to fix it. Probably, I know the root cause.

chandanchan0086 commented 3 years ago

hi @alexmaron81 can u please send me example code for how to use this library using esp-idf?