Hi,
Can someone explain how masking works please?
I've seen Mr. E use it a lot in his code, but he likes using HEX which makes it a 'bit' more foreign to me.I'd appreciate an example using binary masking if at all possible, that way I'll be able to have maximum control over data.
The application I have right now is how to control bits within the address byte (A0, A1 and A2). I have 7 MCP23016 I/O expanders and I'd like to poll them in a loop.
Thanks!
Robert
![]()
Bookmarks