The I2C protocol is a way for multiple devices to talk to each other using just two wires, a clock and data line. Typically you use I2C to talk to devices like sensors, small displays, PWM or motor drivers, and other devices. Each device shares the same clock and data line and the I2C protocol allows them to talk to each other without interferance. With MicroPython you can talk to I2C devices with a few lines of Python code!
This guide will explore how to read data from a MCP9808 I2C temperature sensor using MicroPython. You’ll learn about basic I2C operations and how to perform them with MicroPython. Using this knowledge you can talk to any I2C device and build interesting MicroPython-powered projects!