DC motor with 3(or more) programmed limits

I tested the H bridge and it is more way to operate. The ENA is not used and the PWM signals are emitting to the IN1 and IN2. So the previous solution is also OK. I used to test it with next sketch and its work.

     byte motorSpeed = 123;
     byte motorFwdPin = 5;
     byte motorRevPin = 6;

void setup() {
  pinMode(motorFwdPin, OUTPUT);
  pinMode(motorRevPin, OUTPUT);
  analogWrite(motorRevPin, 0);
  analogWrite(motorFwdPin, motorSpeed);
   
  Serial.begin(9600);
}

void loop() {

   analogWrite(motorRevPin,0);
   analogWrite(motorFwdPin, motorSpeed);
   delay(5000);
   
   analogWrite(motorRevPin,0);
   analogWrite(motorFwdPin,0);
   delay(5000);
   
   analogWrite(motorRevPin, motorSpeed);
   analogWrite(motorFwdPin, 0);
   delay(1000);
}

So what can be the next step?

A