The Pico PMW functionality is rather complicated to use. I provide some easy to use PWM class.
To test the functionality I demonstrate our PicoPWM class which allows you define the frequency and the value range. We use the built in LED to test.