PLAY PODCASTS
Adafruit BusIO library makes debugging I2C failures fast 🛠️💡🔌

Adafruit BusIO library makes debugging I2C failures fast 🛠️💡🔌

Adafruit Industries

August 13, 20231m 20s

Audio is streamed directly from the publisher (adafruit-podcasts.s3.amazonaws.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

It's not often... but every few months, one of our sensor drivers stops working due to hardware changes. It happened this week with the AHT20 tester - for some reason, it doesn't init anymore! What would typically turn into a multi-hour debugging session is a lot easier since we started using an intermediary library called BusIO for I2C/SPI device interactions https://github.com/adafruit/Adafruit_BusIO - there is a single #define we enable to turn on print debugging and when we recompile and upload - voila we see full translation details including stops and transfer failures. Turns out the secret calibration command no longer exists on AHTs; a quick PR https://github.com/adafruit/Adafruit_AHTX0/pull/13 , and we're back in business! 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/ ----------------------------------------- #adafruit #electronics #opensource #opensourcehardware #busio #aht20 #i2c #spi #hardwaredebugging #sensordrivers #libraryinteraction #fastfix #testertools #commandcalibration #transferfailure #businessrecovery #techinnovation #deviceinteractions