lexus2k / ssd1306

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

Support custom SPI bus config for ESP platform #94

Closed mzyy94 closed 4 years ago

mzyy94 commented 4 years ago

I want to use this library for M5StickC and M5StickV. These devices have custom configured SPI bus (mosi=15, sclk=13,..). Manual fix of spi_bus_config_t is required in order to use this ssd1306 library with them (See what I changed). I made these bus numbers configurable with compile-time definition.