Level shifting 3.3V to 12V without inversion

Ever the "XY Problem". :grin:

And indeed, the answer is to use the simplest circuit which inverts, and change your code to do the inversion.

That is the whole point of using a microcomputer! It does the work for you! :sunglasses: