forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
CircuitPython version and board name
Adafruit CircuitPython 9.2.8 on 2025-05-28; Seeed XIAO nRF52840 Sense with nRF52840Code/REPL
import time
import board
import digitalio
from adafruit_lsm6ds.lsm6ds3 import LSM6DS3
led = digitalio.DigitalInOut(board.LED)
led.direction = digitalio.Direction.OUTPUT
i2c = board.I2C()
#board.SDA, board.SCL
while not i2c.trylock():
pass
print("I2C ready")
i2c.unlock()
#sensor = LSM6DS3(i2c)
while True:
#accel_x, accel_y, accel_z = sensor.acceleration
#print(f"Acceleration: X:{accel_x:.2f}, Y: {accel_y:.2f}, Z: {accel_z:.2f}")
led.value = not led.value
print("Hello World !\n")
time.sleep(0.5)Behavior
This code, running on the code.py of CircuitPython 9.2.8, is not working because an only weird thing :
RuntimeError: sda or scl needs a pull up; check ](runtimeerror: no pull up found on sda or scl; check your wiring)
But it's on a card with the pull-ups on it, they are on the schematics and on the PCB. I tried with busio and with lines to let I²C find them.
I also have all the good file tree for the adafruit_lsm6ds lib.
Thanks in advance <3
Description
No response
Additional information
No response
