- Mon Feb 13, 2017 8:48 am
#193395
Compiling/uploading works fine on Arduino Uno
trying to compile for the ESP8266 gives and error :
Thanks a lot
trying to compile for the ESP8266 gives and error :
Code: Select all
Any idea how to solve this ?/Users/***/Dropbox/Arduino/libraries/SparkfunAutoDriver/src/SparkFunAutoDriverSupport.cpp: In member function 'byte AutoDriver::SPIXfer(byte)':
/Users/***/Dropbox/Arduino/libraries/SparkfunAutoDriver/src/SparkFunAutoDriverSupport.cpp:323:40: error: no matching function for call to 'SPIClass::transfer(byte [(((sizetype)(((ssizetype)AutoDriver::_numBoards) + -1)) + 1)], int&)'
_SPI->transfer(dataPacket, _numBoards);
^
/Users/***/Dropbox/Arduino/libraries/SparkfunAutoDriver/src/SparkFunAutoDriverSupport.cpp:323:40: note: candidate is:
In file included from /Users/***/Dropbox/Arduino/libraries/SparkfunAutoDriver/src/SparkFunAutoDriver.h:5:0,
from /Users/***/Dropbox/Arduino/libraries/SparkfunAutoDriver/src/SparkFunAutoDriverSupport.cpp:1:
/Users/***/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/SPI/SPI.h:64:11: note: uint8_t SPIClass::transfer(uint8_t)
uint8_t transfer(uint8_t data);
^
/Users/***/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/SPI/SPI.h:64:11: note: candidate expects 1 argument, 2 provided
Thanks a lot