//fast PWM void setup() { pinMode(3, OUTPUT); pinMode(11, OUTPUT); TCCR2A = _BV(COM2A0) | _BV(COM2B1) | _BV(WGM21) | _BV(WGM20); TCCR2B = _BV(WGM22) | _BV(CS22) | _BV(CS21) | _BV(CS20); OCR2A = 255; OCR2B = 50; } void loop() { //whatever }