Skip to content

I2C issue with BNO055 #14

Closed
Closed
@jfclifford

Description

@jfclifford

Trying to connect BNO055 and Motor Shield v2.3 at the same time to a Metro M4 Express. MotorKit appears to be claiming the i2c bus during init. I would assume this would cause issues with other i2c devices as well, but I do not have any to test with at the moment.
`"""Simple test for using adafruit_motorkit with a DC motor"""
import time
import board
import busio
import adafruit_bno055
from adafruit_motorkit import MotorKit

i2c = busio.I2C(board.SCL, board.SDA)
sensor = adafruit_bno055.BNO055(i2c)

kit = MotorKit()

kit.motor1.throttle = 1.0
time.sleep(0.5)
kit.motor1.throttle = 0`

code.py output: Traceback (most recent call last): File "code.py", line 11, in <module> File "adafruit_motorkit.py", line 75, in __init__ ValueError: SCL in use

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions