How to use MC2301-E/SP I2C I/O expander with Digi XBee 3 (Python)

Just got some MC23017-E/SP I2C I/O expanders. Hoping to use them with my XBee 3 RF router modules. Am I write to think that I would use Micropython to interface with the I2C I/O expander chips? How would I communicate with the extra “pins” that the expander chip provides?.. Would that be in the data sheet on how to call the pins or something. any system overview would be helpful thanks!

Correct, I2C master operation is supported on Digi XBee3 modules using MicroPython.

Please check below link from MicroPython programming guide for details:
https://www.digi.com/resources/documentation/Digidocs/90002219/#reference/r_class_i2c.htm

Mathur
Digi Technical Support

Ok that makes sense. I guess I’m wondering how you would manipulate a particular pin on the I/O expander that’s connected to the XBee’s I2C bus.
So the master would see the I/O expander as a slave device on the I2C bus correct?