how i made the picbasic pro to do this

The ESC requires a 50Hz carrier signal between 1 millisecond and 2 milliseconds to operate. 1ms is zero throttle and 2ms is full throttle. You will not need to program the speed controller unless your robot requires a different voltage cutoff, brake disabled, or motor rotation direction