Good luck DIM'ing anything in PicBasicPro.
Check Proton Basic forums instead.

I DIMmed a light using the X10 commands once!