I've not used it, but the author of Gamedunio3 has come out with two devices, one that analyzes i2c bus protocol and the other spi bus protocol:

I2C:...