Power Module + Arduino Nano + Digital Potentiometer

I am looking to use an Adruino Nano or something similar like a Sparkfun Pro Micro along with a digital potentiometer to control the output wattage/voltage of a power module.

I know this is possible because I have seen several other projects around the web. However, sometimes people don't like to share their good ideas (which I can understand) but I like to tinker.

I have seen how I would wire an analog potentiometer into the mix, but I am really looking to be able to control the voltage/wattage by means of digital potentiometer. Ideally it would be controlled by a pair of switches. I'd be able to navigate menus built into the Arduino, one of which would be the power output of the module.

I've linked the hardware below and a wiring diagram that I've been referencing. There is some code that is associated with the wiring diagram as well, but really I am looking into how I'd wire the digipot into the mix. If anyone could give me a nudge or a hand or tell me to bugger off to somewhere else even, I'd appreciate it. Hopefully I didn't leave anything out.

I am looking at using Power Module A to start with, but in the future would like to use something like Power Module B as well.

Power Module A

Power Module B

Digital Potentiometer

Wiring Diagram