Adafruit_CircuitPython_BNO055 icon indicating copy to clipboard operation
Adafruit_CircuitPython_BNO055 copied to clipboard

[Question] Can I use this package on Jetson Xavier NX module?

Open JAICHANGPARK opened this issue 2 years ago • 3 comments

Hi~

I had some problem using this library on Jetson Xavier NX Board

Test Code

import busio
import board
import adafruit_bno055


sensor = adafruit_bno055.BNO055_I2C(busio.I2C(board.SCL_1, board.SDA_1)) 

Error

Traceback (most recent call last):
  File "board_test.py", line 48, in <module>
    import adafruit_bno055
  File "/home/javier/.local/lib/python3.6/site-packages/adafruit_bno055.py", line 35, in <module>
    from adafruit_bus_device.i2c_device import I2CDevice
  File "/home/javier/.local/lib/python3.6/site-packages/adafruit_bus_device/i2c_device.py", line 25, in <module>
    class I2CDevice:
  File "/home/javier/.local/lib/python3.6/site-packages/adafruit_bus_device/i2c_device.py", line 55, in I2CDevice
    def __init__(self, i2c: I2C, device_address: int, probe: bool = True) -> None:
NameError: name 'I2C' is not defined
Exiting... 
Cleaning up pins

JAICHANGPARK avatar Feb 15 '22 06:02 JAICHANGPARK

Hi @JAICHANGPARK, this is a single board computer, right? There was a happenstance in some of the libraries using Blinka that show this issue. If you upgrade Blinka to version 7.0.0+, I think that should fix it.

tekktrik avatar Mar 03 '22 03:03 tekktrik

@tekktrik Thank you I will check again !

JAICHANGPARK avatar Mar 03 '22 03:03 JAICHANGPARK

@JAICHANGPARK did this end of fixing the problem?

tekktrik avatar Apr 02 '22 22:04 tekktrik

closing due to no response

ladyada avatar Sep 13 '22 04:09 ladyada