Working on a robot, need some help with the coding aspect

Turn the speed down to zero (or 255, depending on how it is wired)