Skip to content

Commit 9e0b19c

Browse files
authored
Fix i2c scan by testing on a real system (#43)
* Fix i2c scan by testing on a real system * Add release note
1 parent 4f226fd commit 9e0b19c

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

HISTORY.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# History
22

3+
## 0.10.2 (2025-06-02)
4+
5+
* Fix I2C scanning command line utility by absorping the errors when no device
6+
is detected on the bus. Tested with a Teensy 4.0 and Sparkfun ISM330DHCX
7+
QWIIC board.
8+
39
## 0.10.1 (2025-05-27)
410

511
* Attempt to fix i2c command line utility by correctly initializing the I2C bus.

teensytoany/i2c_scan.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def _scan_and_print(teensy, interface, baud_rate, seven_bit_mode, verbose):
7979
print(f"Found device at address 0x{address_7bit:02X}")
8080
else:
8181
print(f"Found device at address 0x{address:02X}")
82+
except RuntimeError:
83+
pass
8284
finally:
8385
if verbose and seven_bit_mode:
8486
print(f"No device found at addr 0x{address_7bit:02X}")

0 commit comments

Comments
 (0)