I am probably overlooking the obvious; however, after 30 minutes of forum and manual searches, I'm coming up a bit empty. I can think of away to do this with 4 variables, but that's seems rather "clunky".
Here's what I am looking to do:
I have 4 DIP switches on my board. We will use a switch/case statement to decode the 4 bits (which will give us 16 different combinations.)
Is there a way to concatenate the bits into a single variable?
Many thanks -
RckRllRfg
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Tue Jul 26, 2011 2:05 pm
Quote:
I have 4 DIP switches on my board.
Is there a way to concatenate the bits into a single variable?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum