How can I change the amplitude of a pwm signal ?

Hi all thanks for your reply

Well I actually dont want a level shift.

The max amplitude @ the arduino due is 3.3 Volt.

I just need to variy it like having 10% of the 3.3v or 50% esc.

So no external hardware or so

I attached my code at the first thrid I posted so can aye one tell me wht I need to be able to vary the aplitude of the pwm signal from 0v till max 3.3 volt ?

Thanks in advance