digital staus pin read

The switch statement should have worked unless you were doing it wrong.

On the other hand, bitWrite() is pretty easy to use, to set one bit at a time. Much simpler code, that way.