Closed
Description
Board
M5Stack Stamp S3
Device Description
Original M5Stack Stamp S3.
Hardware Configuration
Bare dev board.
Version
latest master (checkout manually)
IDE Name
PlatformIO
Operating System
Windows 10
Flash frequency
default
PSRAM enabled
yes
Upload speed
default
Description
While trying to compile sketch with FastLed.h dependency I got these compiler errors:
Compiling .pio\build\m5stack-stamps3\lib575\SPI\SPI.cpp.o
C:/Users/user/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src/SPI.cpp: In member function 'void SPIClass::begin(int8_t, int8_t, int8_t, int8_t)':
C:/Users/user/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src/SPI.cpp:87:37: error: 'SCK' was not declared in this scope
_sck = (_spi_num == FSPI) ? SCK : -1;
^~~
C:/Users/user/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src/SPI.cpp:87:37: note: suggested alternative: 'SCL'
_sck = (_spi_num == FSPI) ? SCK : -1;
^~~
SCL
C:/Users/user/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src/SPI.cpp:88:38: error: 'MISO' was not declared in this scope
_miso = (_spi_num == FSPI) ? MISO : -1;
^~~~
C:/Users/user/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src/SPI.cpp:89:38: error: 'MOSI' was not declared in this scope
_mosi = (_spi_num == FSPI) ? MOSI : -1;
^~~~
C:/Users/user/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src/SPI.cpp:90:36: error: 'SS' was not declared in this scope
_ss = (_spi_num == FSPI) ? SS : -1;
^~
C:/Users/user/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src/SPI.cpp:90:36: note: suggested alternative: 'PS'
_ss = (_spi_num == FSPI) ? SS : -1;
^~
PS
FastLed library has dependency on SPI.h. However SCK, MISO, MOSI, SS pins are not declared in variants\m5stack_stamp_s3\pins_arduino.h.
Sketch
#include <Arduino.h>
#include <FastLed.h>
void setup() {
}
void loop() {
}
Debug Message
Not related.
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.