Adafruit Industries

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


Listen Later

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
...more
View all episodesView all episodes
Download on the App Store

Adafruit IndustriesBy Adafruit Industries

  • 4.8
  • 4.8
  • 4.8
  • 4.8
  • 4.8

4.8

13 ratings


More shows like Adafruit Industries

View all
3D Printing Projects by Adafruit Industries

3D Printing Projects

11 Listeners

Raspberry Pi by Adafruit Industries

Raspberry Pi

23 Listeners

Ask an Engineer by Adafruit Industries

Ask an Engineer

2 Listeners

Collin's Lab by Adafruit Industries

Collin's Lab

3 Listeners

New Products by Adafruit Industries

New Products

3 Listeners

Show and Tell by Adafruit Industries

Show and Tell

0 Listeners

3D Hangouts by Adafruit Industries

3D Hangouts

1 Listeners

Circuit Playground by Adafruit Industries

Circuit Playground

0 Listeners