How to replace a mechanical Potentiometer with arduino controlled digital Pot?

change over to i2c from spi its much easier. there are several i2c versions out there.