Looking for a MEGA2560 DAC code

Thanks.
It is multi meter diy, was designed controller is Arduino nano, and I like to use a MEGA2560. it is a really long sketch, would you please ref. to this link please: