This is the firmware source code for my residential HVAC controller circuit. You will need the Microchip MPLAB X IDE in order to compile it and the PICKit programmer to upload it to a PIC microcontroller.
See my project web site for the full details on the circuit.