Здравствуйте. Сделал как вы писали.
Спойлер
ПРЕДУПРЕЖДЕНИЕ: библиотека DMD_STM32_RGB должна запускаться на архитектурах [stm32 и может быть несовместима с вашей платой на архитектуре rp2040].
D:\arduino_1.6\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp: In member function ‘bool Adafruit_I2CDevice::write(const uint8_t*, size_t, bool, const uint8_t*, size_t)’:
D:\arduino_1.6\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp:112:47: error: invalid conversion from ‘const uint8_t* {aka const unsigned char*}’ to ‘uint8* {aka unsigned char*}’ [-fpermissive]
if (_wire->write(prefix_buffer, prefix_len) != prefix_len) {
^
In file included from C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F4\libraries\Wire/Wire.h:41:0,
from D:\arduino_1.6\libraries\Adafruit_BusIO\Adafruit_I2CDevice.h:5,
from D:\arduino_1.6\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp:1:
C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F4\libraries\Wire/WireBase.h:116:10: note: initializing argument 1 of ‘void WireBase::write(uint8*, int)’
void write(uint8*, int);
^~~~~
D:\arduino_1.6\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp:112:49: error: invalid operands of types ‘void’ and ‘size_t {aka unsigned int}’ to binary ‘operator!=’
if (_wire->write(prefix_buffer, prefix_len) != prefix_len) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
D:\arduino_1.6\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp:121:31: error: invalid conversion from ‘const uint8_t* {aka const unsigned char*}’ to ‘uint8* {aka unsigned char*}’ [-fpermissive]
if (_wire->write(buffer, len) != len) {
^
In file included from C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F4\libraries\Wire/Wire.h:41:0,
from D:\arduino_1.6\libraries\Adafruit_BusIO\Adafruit_I2CDevice.h:5,
from D:\arduino_1.6\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp:1:
C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F4\libraries\Wire/WireBase.h:116:10: note: initializing argument 1 of ‘void WireBase::write(uint8*, int)’
void write(uint8*, int);
^~~~~
D:\arduino_1.6\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp:121:33: error: invalid operands of types ‘void’ and ‘size_t {aka unsigned int}’ to binary ‘operator!=’
if (_wire->write(buffer, len) != len) {
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
D:\arduino_1.6\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp: In member function ‘bool Adafruit_I2CDevice::_read(uint8_t*, size_t, bool)’:
D:\arduino_1.6\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp:195:79: error: no matching function for call to ‘TwoWire::requestFrom(uint8_t, uint8_t, uint8_t)’
size_t recv = _wire->requestFrom((uint8_t)_addr, (uint8_t)len, (uint8_t)stop);
^
In file included from C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F4\libraries\Wire/Wire.h:41:0,
from D:\arduino_1.6\libraries\Adafruit_BusIO\Adafruit_I2CDevice.h:5,
from D:\arduino_1.6\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp:1:
C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F4\libraries\Wire/WireBase.h:101:11: note: candidate: uint8 WireBase::requestFrom(uint8, int)
uint8 requestFrom(uint8, int);
^~~~~~~~~~~
C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F4\libraries\Wire/WireBase.h:101:11: note: candidate expects 2 arguments, 3 provided
C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F4\libraries\Wire/WireBase.h:106:11: note: candidate: uint8 WireBase::requestFrom(int, int)
uint8 requestFrom(int, int);
^~~~~~~~~~~
C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F4\libraries\Wire/WireBase.h:106:11: note: candidate expects 2 arguments, 3 provided
exit status 1
Ошибка компиляции для платы Generic STM32F407V series.