Gladgrif But where is the I2C bus on the Bela Mini? I see that it should have one, from the description here:
You can use the I2C2 bus which is on P2_09
(SCL) and P2_11
(SDA): https://raw.githubusercontent.com/wiki/BelaPlatform/Bela/Images/BelaMiniPinout.png
Gladgrif (Any code for reading the data from this bus would also be much appreciated.)
The code in there should work, it has been updated recently. Look inside the lib
folder and you will see files Bela_BNO055.cpp
and Bela_BNO055.h
: these handle the I/O from the device. An example of using them is in lib/libpd-render-with-IMU.cpp
: a customized render file for Pd that fetches data from the IMU and sends them to Pd. If you want to use Pd for your project, just check out the other examples in workshop/
: they use Pd, the library, and the custom render. If your project is in C++, you can use the API in lib/Bela_BNO055.h
and the example use in lib/libpd-render-with-IMU.cpp
as the starting point.