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