Attempting to create more than one Adafruit_BNO08x fails, because i2c_dev is a static global, and gets discarded and re-created on the second call to the Adafruit_BNO08x constructor. I believe the i2c_dev should be a field in the device object.
See https://discord.com/channels/327254708534116352/537365760008257569/1273319381597687828 for a thread about this.
Attempting to create more than one
Adafruit_BNO08xfails, becausei2c_devis astaticglobal, and gets discarded and re-created on the second call to theAdafruit_BNO08xconstructor. I believe thei2c_devshould be a field in the device object.See https://discord.com/channels/327254708534116352/537365760008257569/1273319381597687828 for a thread about this.