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

How to specify i2c bus on linux? #161

Open vipaoL opened 4 months ago

vipaoL commented 4 months ago

I'm building with tools/buid_and_run.sh and my i2c bus is /dev/i2c-7. How to choose it instead of the default from, I guess, raspberry pi?

lexus2k commented 4 months ago

@vipaoL could you please try to use ssd1306_i2cInitEx2() ? The first parameter is what you need.