using pullstime

the m1.writeMicroseconds(1000); is for when nothing is pressed, so the motor speed would go to zero (1000), and the myPulsetime = (mypulseTime + pulseIncrement); is for the variation of speed

I get that, but you are not writing myPulsetime to m1

You seem to know how to write 1000 to m1 so have a wild guess as to how you would write myPulsetime to it.