Arduino code to generate PWM for a sine wave.