-
I've been trying that, and the voltage seems to be doubling, but I've wired it up to be tripled (which makes me believe it's only doubling because there's another input, not because there's added voltage from capacitors)... I've tested the difference by pulling out the second capacitor, but the brightness remains the same and changing the frequency has no difference from if I used the toggle function in the OP. I'll try uploading a test to youtube today and link it here.
What he's suggesting there should work just fine with analogWrite. If you don't have an oscilloscope then maybe in order to check it's working you could set
freq
to 1 and attach an LED?