|
我这个错误是怎么回事,不知道哪里出问题了
D:\Program Files (x86)\arduino1\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp: In member function 'void Adafruit_SPIDevice::transfer(uint8_t*, size_t)':
D:\Program Files (x86)\arduino1\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp:133:31: error: no matching function for call to 'SPIClass::transfer(uint8_t*&, size_t&)'
_spi->transfer(buffer, len);
^
In file included from D:\Program Files (x86)\arduino1\libraries\Adafruit_BusIO\Adafruit_SPIDevice.h:9:0,
from D:\Program Files (x86)\arduino1\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp:1:
D:\Program Files (x86)\arduino1\hardware\espressif\esp32\libraries\SPI\src/SPI.h:67:13: note: candidate: uint8_t SPIClass::transfer(uint8_t)
uint8_t transfer(uint8_t data);
^
D:\Program Files (x86)\arduino1\hardware\espressif\esp32\libraries\SPI\src/SPI.h:67:13: note: candidate expects 1 argument, 2 provided
D:\Program Files (x86)\arduino1\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp: In member function 'bool Adafruit_SPIDevice::write(const uint8_t*, size_t, const uint8_t*, size_t)':
D:\Program Files (x86)\arduino1\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp:335:61: error: invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'uint8_t* {aka unsigned char*}' [-fpermissive]
_spi->transferBytes(prefix_buffer, nullptr, prefix_len);
^
In file included from D:\Program Files (x86)\arduino1\libraries\Adafruit_BusIO\Adafruit_SPIDevice.h:9:0,
from D:\Program Files (x86)\arduino1\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp:1:
D:\Program Files (x86)\arduino1\hardware\espressif\esp32\libraries\SPI\src/SPI.h:70:10: note: initializing argument 1 of 'void SPIClass::transferBytes(uint8_t*, uint8_t*, uint32_t)'
void transferBytes(uint8_t * data, uint8_t * out, uint32_t size);
^
D:\Program Files (x86)\arduino1\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp:338:47: error: invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'uint8_t* {aka unsigned char*}' [-fpermissive]
_spi->transferBytes(buffer, nullptr, len);
^
In file included from D:\Program Files (x86)\arduino1\libraries\Adafruit_BusIO\Adafruit_SPIDevice.h:9:0,
from D:\Program Files (x86)\arduino1\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp:1:
D:\Program Files (x86)\arduino1\hardware\espressif\esp32\libraries\SPI\src/SPI.h:70:10: note: initializing argument 1 of 'void SPIClass::transferBytes(uint8_t*, uint8_t*, uint32_t)'
void transferBytes(uint8_t * data, uint8_t * out, uint32_t size);
^
D:\Program Files (x86)\arduino1\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp: In member function 'bool Adafruit_SPIDevice::write_then_read(const uint8_t*, size_t, uint8_t*, size_t, uint8_t)':
D:\Program Files (x86)\arduino1\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp:429:59: error: invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'uint8_t* {aka unsigned char*}' [-fpermissive]
_spi->transferBytes(write_buffer, nullptr, write_len);
^
In file included from D:\Program Files (x86)\arduino1\libraries\Adafruit_BusIO\Adafruit_SPIDevice.h:9:0,
from D:\Program Files (x86)\arduino1\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp:1:
D:\Program Files (x86)\arduino1\hardware\espressif\esp32\libraries\SPI\src/SPI.h:70:10: note: initializing argument 1 of 'void SPIClass::transferBytes(uint8_t*, uint8_t*, uint32_t)'
void transferBytes(uint8_t * data, uint8_t * out, uint32_t size);
^
"WiFi.h" 对应多个库
已使用: D:\Program Files (x86)\arduino1\hardware\espressif\esp32\libraries\WiFi
未使用:D:\Program Files (x86)\arduino\libraries\WiFi
exit status 1
为开发板 ESP32F 编译时出错。
|
|