Hi forum
I'm a very new beginner of switching Arduino to ESP32, and it is awesome to work with Arduino IDE. However, Currently I meet a problem about SPI.h.
When I use Arduino IDE to compile arduino-esp32/libraries/ (Github arduino-esp32/libraries at master · espressif/arduino-esp32 · GitHub), There is no problem to run the example. However, when I tried the example code by PLATFORM IO in Visual Studio Code, it always shows an error message like:
src\SPI.cpp: In member function 'void SPIClass::transferBytes(const uint8_t*, uint8_t*, uint32_t)':
src\SPI.cpp:253:43: error: invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'uint8_t* {aka unsigned char*}' [-fpermissive]
spiTransferBytes(_spi, data, out, size);
I've been stuck here for more than 3 days and really frustrated. So I just wondering if anyone met the same problem before, or does anyone knows what's going on here?
Any help is appreciated!
Thanks,
Bests,
G