This content has been marked as final. Show 4 replies
Actual voltage: 5v,5v,5v,0v
Oh, I was misreading the Pins API function.
Bit shift was done in the API.
I had no need to shift the port value, that's useless.
sorry for that.
When reading the port with the appropiate APIs you'll have to select yourself the right bits by masking and shifting. When reading the pins the API does the shift for you and returns false (0x00 or true (0x01).