I need some advice on reading an 8-input multiplexer connected to 8 reed switches. The current program polls the inputs and produces an 8-character string result, i.e. 10010110, which is difficult to work with. I would like the output to be a single 8-bit byte so that the bitRead function can be used to easily determine the status of each switch.
Would appreciate any comments or suggestions on whether or not this is the right approach and how to go about it. Thanks,