Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (11 sloc) 303 Bytes
# CircuitPython demo - I2C scan
import time
import board
import busio
i2c = busio.I2C(board.SCL, board.SDA)
while not i2c.try_lock():
while True:
print("I2C addresses found:", [hex(device_address)
for device_address in i2c.scan()])
You can’t perform that action at this time.