I use a MCP4017T digital pot. the 50K one. I tested it, it worked. the dimming range isnt that great, but i think I have between 10% and 75% . To turn it off I have a mosfet to pull the DIMcontrol to GND and a mosfet to let DIMcontrol float (full on).
since the range that I have is limited, im curious how the DAC will operate.
When I look at the schematic from @jimmyjames, I see that he uses the mcp4716a0t-e/ch as DAC.