i2c_scanner.py

# Ce travail est publié sous licence MIT.
# Copyright (c) 2013-2023 OpenMV LLC. Tous droits réservés.
# https://github.com/openmv/openmv/blob/master/LICENSE
#
# Exemples de scanner I2C
#
from machine import I2C

i2c = I2C(1, freq=400_000)
for addr in i2c.scan():
    print("Found device at address %d:0x%x" % (bus, addr))

results matching ""

    No results matching ""