[Solved] Increasing PWM frequency and resolution

plusminus_:
Interesting. What if I changed val in analog_wiring.c to 1023, and changed the little timer bit in wiring.c?

You could do that. But what I showed is just as easy.

plusminus_:
But I take it I will be able to change OCR1A just as I would use analogWrite() in loop()? That sounds okay to me.

Yes, as in the code above.