Dual H bridge setup

Im wanting to use a Dual H bridge to control a pair of folding wing mirrors (just control the folding/undfolding, not the glass).

Can someone give me some advice on setup? The wiring diagram is here:

Control wise ive got a non latching switch wired into my pmu24 and the plan is to have them open/close when ever the bottom is pressed.

Id also like to have them open on startup and close on the PMU shut down.

The thing Im struggling to get my head around is the motor wiring. Id assumed the limit switches could just be wired into analogue outputs for “open” and “closed”, but it seems they’re actually part of the motor circuit, so i cant easy make them 5v signals. (I didnt have this wiring diagram when i ordered the dual HB)

Any help will be really appreciated.

This is a JZX?

if you’re dead set on removing the folding mirror module, since its a 12V input to make them fold and would make programming this really easy, the PMU inputs are 20V safe. It can only measure 0-5V accurately and anything above 5V is just a true condition.
I think this is also true for the H bridge module but I would email Ecumaster and ask this. Would neaten up the wiring having all the mirrors go to one place imo

I dont have to module, im retrofitting these to a car that didnt have the originally. My plan is to use the H bridge in place of the the originsl control module.

If the H bridge can take the 12v signal into the analoge input that would be amazing. Im always cautious about trying stuff like that though. I have a CANchecked input expainsion module that was meant to take 12v on the digital inputs and the board fried. It was 3 months of arguing to get it repaired.

Just to comfirm ECU master has said the H bridge inputs are the same as the PMU24, so 20v capable

It Works!

Well at least I’ve managed to get the to open on power up and close on shut down.

I’ve run out of talent though when trying to add a toggle switch into the mix. I’m wanting essentially have a button change whatever the current state is but retain the (close on shut down/ open on power up logic)

could someone a bit better at navigating the software look at my configurations and see what I need to do?

PMU24 config

H Bridge