lexus2k / ssd1306

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

"Failed to Initialize: No such file or directory!" on RPI zero 6.1.21+ #1642 Mon Apr 3 17:19:14 BST 2023 armv6l GNU/Linux #156

Open Ganjouille opened 1 year ago

Ganjouille commented 1 year ago

Describe the bug The demo is compiling fine after I modified for SPI. Same connections works with addafruit_ssd1306 in python.

To Reproduce Steps to reproduce the behavior:

  1. Uncomment examples/demos/ssd1306_demo/ssd1306_demo.ino and change the SPI pins on line 168 to conveniance following GPIO number. In my case RST=gpio24, CE=gpio23, D/C=gpio22
  2. Uncomment other init function calls (i2c, etc)
  3. cd tools && ./build_and_run.sh -p linux demos/ssd1006_demo
  4. cd bld/demos/ && sudo ./ssh1306_demo
  5. see error "Failed to initialize SPI: No such file or directory!"

Expected behavior See menu on lcd

Please complete the following information:

Ganjouille commented 1 year ago

Ok so I changed pin configuration again and rebuilt. Is working fine now! Sorry /: