modification to temperature.cpp to use hardware pwm instead of software pwm

this is a modification that was made to make the pwm current control more effective and actually limit the current on a more linearish scale