Using an ATtiny85 to control an MCP4017 or MCP4018 to function as a programming resistor for a LiPo charger