Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
remzibi opened this issue Nov 15, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@remzibi
Copy link

remzibi commented Nov 15, 2023

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:

  • library version : Using library lcdgfx at version 1.1.5
  • LCD display type : ili9341
  • OS windows10
  • Platform esp8266 generic
  • IDE Arduino 2.2.1

Additional context
no additional context

@remzibi remzibi added the bug Something isn't working label Nov 15, 2023
@oiv
Copy link

oiv commented Dec 13, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants