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

Library directory issue in PlatformIO. #127

Closed adi-maxx closed 3 years ago

adi-maxx commented 3 years ago

Good day to you,

I've stumbled upon an error when I try to compile an example of this library, sh1106_demo to be specific. The error stated that it did not found the directory for the "Wire.h" even though it exist in the library directory. I wonder why this happen?

Additional information-- library version 1.8.0

method of using the library in PlatformIO: by pasting the library in the lib directory and add library path in the configuration.


SS

Terminal Log.txt

Regards,

lexus2k commented 3 years ago

Hi,

Unfortunately, I don't use platform io directly. I believe it dependency issue. You can find similar issues and solutions over internet: https://community.platformio.org/t/wire-h-not-found-platformio-latest-version/2046 If you solve the problem, please make a note here about the solution.

Best regards

adi-maxx commented 3 years ago

Oh I see, fortunately I did manage to solve this issue for my project by adding #include and . Which make use the header file from the platformIO directory instead. By adding the #include and , ssd1306 library works fine.

Cheers,