Control the setting of an electronic rheostat based on the state of digital lines on an I2C IO expander