Re: Using Switches on the Operator Interface
Okay, that works. Now what if I have a multi-way switch? Can I plug it into the pin corresponding to p4_x, let's say, under port 4, and get a value from 0 to 255, where 0 will be one position, 1 will be another, and 2 will be another? And how will the switch know which position should be 0 and which should be 2? Or is it going to return 1,0, and -1, thus throwing my unsigned char data type off balance?
|