best solution for 12 analog outputs (5 bits)

I use this sketch:

That would work.