Skip to content
Global sound
Adafruit Industries

Adafruit Industries

John Park's CircuitPython Parsec: Surviving Sensor Drop with Try/Except

· 4 min

Show notes

Help your code gracefully survive an I2C sensor disconnect with a try/except in CircuitPython.

code example: https://github.com/jedgarpark/parsec/blob/main/2026-10-01/code.py

Learn about CircuitPython: https://circuitpython.org

Visit the Adafruit shop online - http://www.adafruit.com

-----------------------------------------
LIVE CHAT IS HERE! http://adafru.it/discord
Subscribe to Adafruit on YouTube: http://adafru.it/subscribe
New tutorials on the Adafruit Learning System: http://learn.adafruit.com/
-----------------------------------------

Live, last hour: 1,759 songs on 7,706 stations in 142 countries

Discover the world through radio

More ways to discover (9)

Heard something good? Save it, or open it straight away in Spotify.

Radio 538 luisteren - Live!Popular right now