avr c code for heating circuit with 4 lipo's