# MCP41010 Example This example demonstrates how to use the MCP41XXX_MCP42XXX driver to set a specific 8 bit resistor value. ## Pin Mapping | MCP41010 Pin | ESP32 Pin (GPIO) | Function | Notes | | :----------- | :--------------- | :---------------- | :---------------------------------- | | **VDD** | 3.3V | Power | Stable 3.3V Supply | | **VSS** | GND | Ground | Common Ground | | **SCK** | GPIO 26 | SPI Clock | - | | **SDI** | GPIO 25 | SPI MOSI | - | | **CS** | GPIO 32 | SPI CS | 10k Pull-up to 3.3V |
To create a project from this example, run:
idf.py create-project-from-example "bammer187/mcp41xxx-mcp42xxx=1.0.1:set_resistance"