I am trying to modify this code to move PWM from pin 3 to 11 (Arduino Nano v3), but have not had much success. How can it be done?
pinMode(3, OUTPUT); // enable the PWM output
TCCR2A = B00100011; // Fast PWM change at OCR2
TCCR2B = B11001; // Timer running at full system clock
OCR2A = 21; // output frequency = 16,000,000/(OCR2A+1)
pinMode(3, OUTPUT); // enable the PWM output
OCR2B = 11; // 50% duty cycle