This repository was archived by the owner on Apr 16, 2021. It is now read-only.
This repository was archived by the owner on Apr 16, 2021. It is now read-only.
Problem with Wire when rebuilding mbed os #93
Closed
Description
Hello!
In my project I needed to recompile mbed-os since I wanted to use a BLE MTU larger than the default value 23.
However, I get problems when building with the Arduino_LSM9DS1 library. It complains about Wire1 not being defined. I can fix the problem manually by using Wire instead of Wire1 in Arduino_LSM9DS1. I also have to change the definition of Wire in Wire.cpp according to
#if DEVICE_I2C > 0
//arduino::MbedI2C Wire(I2C_SDA, I2C_SCL);
arduino::MbedI2C Wire(I2C_SDA1, I2C_SCL1);
#endif
#if DEVICE_I2C > 1
arduino::MbedI2C Wire1(I2C_SDA1, I2C_SCL1);;
#endif
Am I missing something in the configuration? I am running the script "mbed-os-to-arduino" as
./mbed-os-to-arduino -r /home/anste/mbed-os -a ARDUINO_NANO33BLE:ARDUINO_NANO33BLE
where "/home/anste/mbed-os" is my local patched version of mbed os.
Metadata
Metadata
Assignees
Labels
No labels