#commandcalibration
Explore tagged Tumblr posts
Text
Adafruit BusIO library makes debugging I2C failures fast 🛠️💡🔌
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!
#adafruit#electronics#opensource#opensourcehardware#busio#aht20#i2c#spi#hardwaredebugging#sensordrivers#libraryinteraction#fastfix#testertools#commandcalibration#transferfailure#businessrecovery#techinnovation#deviceinteractions
5 notes
·
View notes