You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example fails to build because SPI.h is not found, as the following messages indicate
In file included from .pio/libdeps/esp32dev/Adafruit BusIO/Adafruit_BusIO_Register.h:10,
from .pio/libdeps/esp32dev/Adafruit BusIO/Adafruit_BusIO_Register.cpp:1:
.pio/libdeps/esp32dev/Adafruit BusIO/Adafruit_SPIDevice.h:9:10: fatal error: SPI.h: No such file or directory
Platformio suggest to include another library using its dependencies, but SPI is already part of the framwork, to fix the error the user just need to include SPI before the rest of the example code.
Example:
#include <Arduino.h>
#include <SPI.h>
// Date and time functions using a PCF8563 RTC connected via I2C and Wire lib
#include "RTClib.h"
RTC_PCF8563 rtc;
char daysOfTheWeek[7][12] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};
~rest of example
Maybe adding this tip, as a comment on the example can help other users to avoid this error.
The text was updated successfully, but these errors were encountered:
The example fails to build because SPI.h is not found, as the following messages indicate
Platformio suggest to include another library using its dependencies, but SPI is already part of the framwork, to fix the error the user just need to include SPI before the rest of the example code.
Example:
Maybe adding this tip, as a comment on the example can help other users to avoid this error.
The text was updated successfully, but these errors were encountered: