I want enable my ePin which is connected to pin 1 on the H-bridge, and pin 1 on the H-bridge to my understanding is what controls the motor and is considered an enable pin. I also want it to enable pin1, which is connected to pin7 on the H-bridge ( I think pin7 on H-bridge has to do with the motor logic, also considered as input 2). Finally, disable my pin 2, which is connected to pin2 on the H-bridge.
As seen here:
if (switchStateUp == HIGH);
{ digitalWrite(ePin, HIGH);
digitalWrite(pin1, HIGH);
digitalWrite(pin2, LOW); }```
I hope I am understanding the depth of your question.