Skip to content

Commit d65e8d1

Browse files
committed
Make requested formatting changes for pull
1 parent dccfcc1 commit d65e8d1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

CircuitPython_Essentials/CircuitPython_I2C_Scan.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#
33
# If you run this and it seems to hang, try manually unlocking
44
# your I2C bus from the REPL with
5-
# ` >>> import board `
6-
# ` >>> board.I2C().unlock() `
5+
# >>> import board
6+
# >>> board.I2C().unlock()
77

88
import time
99
import board
@@ -14,10 +14,9 @@
1414
pass
1515

1616
try:
17-
1817
while True:
1918
print("I2C addresses found:", [hex(device_address)
20-
for device_address in i2c.scan()])
19+
for device_address in i2c.scan()])
2120
time.sleep(2)
2221

2322
finally: # unlock the i2c bus when ctrl-c'ing out of the loop

0 commit comments

Comments
 (0)