Example: 50-Arduino-Boards/Giga-H7/50-Board-Control/i2c_scanner.py

# 本作品采用MIT许可证授权。
# 版权所有 (c) 2013-2023 OpenMV LLC。保留所有权利。
# https://github.com/openmv/openmv/blob/master/LICENSE
#
# 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 ""