lexus2k / lcdgfx

Driver for LCD displays running on Arduino/Avr/ESP32/Linux (including Rasperry) platforms
MIT License
389 stars 55 forks source link

ESP8266 demo compilation error: fatal error: driver/spi_master.h: No such file or directory #111

Open remzibi opened 1 year ago

remzibi commented 1 year ago

Describe the bug Arduino IDE 2.2.1 fresh installed, fresh installed lcdgfx library, st7735 and ili9341 demos not compile for esp8266 board with this error: libraries\lcdgfx\src/lcd_hal/esp/esp32_spi.h:34:10: fatal error: driver/spi_master.h: No such file or directory 34 | #include "driver/spi_master.h" | ^~~~~ compilation terminated.

To Reproduce Steps to reproduce the behavior:

  1. install Arduino IDE 2.2.1, install lcdgfx library 1.1.5 from library manager
  2. Click on 'compile'
  3. Scroll down to read error
  4. See error : libraries\lcdgfx\src/lcd_hal/esp/esp32_spi.h:34:10: fatal error: driver/spi_master.h: No such file or directory 34 | #include "driver/spi_master.h" | ^~~~~ compilation terminated.

Expected behavior sd1306 library demos compiling and works well with this particular MCU board and this particular ili9341 display, so hardware is OK.

Screenshots If applicable, add screenshots to help explain your problem.

Please complete the following information:

Additional context no additional context

oiv commented 11 months ago

It looks like #define CONFIG_ESP32_SPI_AVAILABLE is misplaced in lcdgfx/src/lcd_hal/arduino/io.h Commenting it out helped for me as a temporary solution