Let's talk to an I2C sensor.
We'll use the MSA301 sensor which can read acceleration. Since the MCP2221 and the MSA301 both have STEMMA QT connectors, you have two options for making the connections.
You can either wire everything up on a breadboard, like this:
Or use a STEMMA QT cable:
sudo pip3 install adafruit-circuitpython-msa301
Note that this step is the same as shown in the main MSA301 guide. You would do the same general process for any other sensor with a CircuitPython library.
save it as msa301_simpletest.py and run it with:
python3 msa301_simpletest.py
Pick up the board and spin it around. You should see the values change:
Text editor powered by tinymce.