I am also interested in this topic. I have been working with I2C expanders and I had integration problems due to Mbed OS non-virtual interfaces. At the end, we decided to integrate them at HAL level to be available from DigitalOut API but there are some interrupt issues which we haven’t resolved yet.