“#define Wire Wire1” does not work as expected, so I rewrote Wire to Wire1.
My sketch is attached for reference. The comments are in Japanese so I don’t think you can read them, but please bear with me.
nRF52_XIAO_IMU_Madgwick_peripheral.zip (17.4 KB)