Adafruit_BNO08x icon indicating copy to clipboard operation
Adafruit_BNO08x copied to clipboard

Cannot create more than one instance

Open dhalbert opened this issue 6 months ago • 4 comments

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.

dhalbert avatar Aug 14 '24 17:08 dhalbert