How can I change the amplitude of a pwm signal ?

You get 0V, you get 3.3V. That's it. You want a level in between you need external hardware. 2 resistors as a voltage divider as minimum.