My basic newb thinking was that iirc, digitalwrite at high was = to 5v, so with some quick proof of concept testing i thought it should do the same thing.
Used a 1R2 (instead of 2150 ohms)
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16