I2C troubleshooting

I have an Adafruit Trinket M0 connected to my Orin on bus 1. The cables look fine, are connected and I’m reading serial output via USB to another computer. Here’s my code I run on the trinket. I want to establish contact via I2C and send data from jetson to trinket (which should control a bunch of lights).

import digitalio
import board
import busio

i2c = busio.I2C(scl=board.SCL, sda=board.SDA)
while not i2c.try_lock():
  while True:
    print("I2C addresses found:" , [hex(d) for d in i2c.scan())])

I can’t get 1) the jetson to see the trinket via i2cdetect -y -r 1 at all, and 2) the trinket to see the jetson via this script at all. Should I not expect to see it? What else can I try?

Please probe the i2c signal to confirm the device have ack for the command.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.