Hello, new to PlatformIO here.
As the title said, I am trying to build a sample sketch from “Adafruit ST7735 and ST7789” library. Using Arduino IDE there was no problem building => uploading => running the sketch on NodeMCU v2. Using PlatformIO however there was this error (and many similar errors) from SD_ID161 library:
.platformio\lib\SD_ID161\utility\Sd2PinMap.h:371:2: error: #error Architecture or board not supported.
This is the Dependency Graph:
Dependency Graph
|-- <Wire> 1.0
|-- <Adafruit GFX Library> 1.7.5
| |-- <Adafruit ILI9341> 1.5.4
| | |-- <Adafruit STMPE610> 1.1.1
| | | |-- <SPI> 1.0
| | | |-- <Wire> 1.0
| | |-- <Adafruit TouchScreen> 1.0.5
| | |-- <SPI> 1.0
| |-- <SPI> 1.0
|-- <Adafruit ST7735 and ST7789 Library> 1.5.15
| |-- <Adafruit GFX Library> 1.7.5
| | |-- <Adafruit ILI9341> 1.5.4
| | | |-- <Adafruit STMPE610> 1.1.1
| | | | |-- <SPI> 1.0
| | | | |-- <Wire> 1.0
| | | |-- <Adafruit TouchScreen> 1.0.5
| | | |-- <SPI> 1.0
| | |-- <SPI> 1.0
| |-- <Adafruit seesaw Library> 1.3.0
| | |-- <Wire> 1.0
| |-- <SD>
| | |-- <SPI> 1.0
| |-- <SPI> 1.0
|-- <SPI> 1.0
It seems that on ESP8266, there is a SD library that should be used instead of the default SD_ID161, I have tried adding this to my platformio.ini:
lib_deps = SD(esp8266)
which results in:
Dependency Graph
|-- <Wire> 1.0
|-- <SD(esp8266)> 2.0.0
| |-- <SDFS> 0.1.0
| | |-- <SPI> 1.0
| | |-- <ESP8266SdFat> 1.1.0
| | | |-- <SPI> 1.0
| |-- <SPI> 1.0
| |-- <ESP8266SdFat> 1.1.0
| | |-- <SPI> 1.0
|-- <Adafruit GFX Library> 1.7.5
| |-- <Adafruit ILI9341> 1.5.4
| | |-- <Adafruit STMPE610> 1.1.1
| | | |-- <SPI> 1.0
| | | |-- <Wire> 1.0
| | |-- <Adafruit TouchScreen> 1.0.5
| | |-- <SPI> 1.0
| |-- <SPI> 1.0
|-- <Adafruit ST7735 and ST7789 Library> 1.5.15
| |-- <Adafruit GFX Library> 1.7.5
| | |-- <Adafruit ILI9341> 1.5.4
| | | |-- <Adafruit STMPE610> 1.1.1
| | | | |-- <SPI> 1.0
| | | | |-- <Wire> 1.0
| | | |-- <Adafruit TouchScreen> 1.0.5
| | | |-- <SPI> 1.0
| | |-- <SPI> 1.0
| |-- <Adafruit seesaw Library> 1.3.0
| | |-- <Wire> 1.0
| |-- <SD>
| | |-- <SPI> 1.0
| |-- <SPI> 1.0
|-- <SPI> 1.0
It seems that the default SD library is still being used as dependency of “Adafruit ST7735 and ST7789”, instead of using SD(esp8266). On Arduino IDE this seems not to be the case.
Any advice on how to build the sketch? Thanks in advance!