HiTechnic Prototype board
I've just started using the HiTechnic Prototype board. I am using mightor's 3rd-party drivers and I've not been able to understand one thing: how to read the B inputs.
This is HTPB-exp7.c, the code for the 7th experiment of the HiTechnic Experimenters Kit A (magnetic sensor connected to B0 and LED to B4):
Here the mask used to read is 0xF3. Why is that? (bin 11110011 does not seem logical to me...) This code doesn't work for me by the way: it only works when I use 0x01 as the mask.
Could anybody explain what mask is to be used to read any B input? Is it possible to read simultaneously two or more inputs, or a combination of outputs (i.e if I want to check that B0, and B1 are true and B3, and B4 are false ignoring B5)?
Thanks in advance,