Description
This is just the first error of 8 when compiling, but they are all about the same readRegisterRegion function.
When using board "Arduino Mbed OS RP2040 Boards" I get this error:
...\SparkFun_AS7331_Arduino_Library\src\sfeAS7331.cpp:95:97: error: cannot bind non-const lvalue reference of type 'size_t& {aka unsigned int&}' to an rvalue of type 'size_t {aka unsigned int}'
sfeTkError_t result = _theBus->readRegisterRegion(kSfeAS7331RegCfgCreg1, regs, 6U, nRead);
When using board "Rasberry PI Pico/RP2040" I get this error:
...\SparkFun_AS7331_Arduino_Library\src\sfeAS7331.cpp:95:92: error: cannot bind non-const lvalue reference of type 'size_t&' {aka 'unsigned int&'} to a value of type 'uint32_t' {aka 'long unsigned int'}
95 | sfeTkError_t result = _theBus->readRegisterRegion(kSfeAS7331RegCfgCreg1, regs, 6U, nRead);