Adafruit Industries

← Adafruit Industries2 Oct · 4 min

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

John Park's CircuitPython Parsec: Surviving Sensor Drop with Try/Except2 Oct4 min

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/

-----------------------------------------