If I read the source correctly, the library you're using sets up I2C on pins 8 and 9, while you're using the standard I2C0 pins, 4 and 5. Try instantiating the device as:Oh, and don't forget to add:in the beginning.
Code:
motion = PiicoDev_LIS3DH(bus=0, sda=Pin(4), scl=Pin(5))
Code:
from machine import Pin
Statistics: Posted by horuable — Thu Oct 24, 2024 2:22 pm