Fix and update to digital_IO writing

Writing to digital_IO now distinguishes between port 0 and 1, this is
only a superficial thing.  Maybe I should clean it up since writing 32
to port 1 will fail silently and just write a zero.

Other update is to use writeDigitalScalarU32