Closed Skysurfer-14 closed 5 years ago
Hi @Skysurfer-14,
Could you please provide more details on you setup? Like which board you are targeting and full verbose output.
Sorry, I can reproduce it when the Uno is selected, I just saw your edited comment.
This library has only been tested on SAMD boards, like the Arduino MKR series.
Closing this as won't fix, based on the comment in https://github.com/arduino-libraries/ArduinoECCX08/issues/4#issuecomment-440718620.
@sandeepmistry any idea if this library can support Teensy4.0? I am having a similar issue:
lib\ArduinoECCX08\src\ECCX08.cpp: In member function 'int ECCX08Class::receiveResponse(void*, size_t)':
lib\ArduinoECCX08\src\ECCX08.cpp:724:80: error: call of overloaded 'requestFrom(uint8_t, size_t, bool)' is ambiguous
while (_wire->requestFrom((uint8_t)_address, (size_t)responseSize, (bool)true) != responseSize && retries--);
^
In file included from C:\Users\ganna\.platformio\packages\framework-arduinoteensy\libraries\Wire/Wire.h:26:0,
from lib\ArduinoECCX08\src\ECCX08.h:24,
from lib\ArduinoECCX08\src\ECCX08.cpp:22:
C:\Users\ganna\.platformio\packages\framework-arduinoteensy\libraries\Wire/WireIMXRT.h:90:10: note: candidate: uint8_t TwoWire::requestFrom(uint8_t, uint8_t, uint8_t)
uint8_t requestFrom(uint8_t address, uint8_t quantity, uint8_t sendStop);
^
C:\Users\ganna\.platformio\packages\framework-arduinoteensy\libraries\Wire/WireIMXRT.h:94:10: note: candidate: uint8_t TwoWire::requestFrom(int, int,
int)
uint8_t requestFrom(int address, int quantity, int sendStop) {
On compiling the example file in Platformio for Arduino UNO, I get an error:
C:\Users\user.platformio\lib\ArduinoECCX08_ID5570\src\ECCX08.cpp:622:80: error: call of overloaded 'requestFrom(uint8_t, size_t, bool)' is ambiguous
It seems, that changing the Line 622 of ECCX08.cpp to
while (_wire->requestFrom((uint8_t)_address, (size_t)responseSize) != responseSize && retries--);
solves the problem.