9 years, 2 months ago.

what does this means

0x0000002D do?

Question relating to:

1 Answer

9 years, 2 months ago.

The 0x0000002D is called a "bit mask". It's used to determine which bits to use when reading from the port. So in the 0x0000002D case, that's 101101 in binary. So the corresponding pins of that port (0, 2, 3, and 5) would be used for the read value. The physical pins that are used would vary depending on which platform your using. You'll have to do a little research on the platforms page to find which pins corresponding to what port.

Hope that helps, Brian