Go Down

Topic: Case statement using array, help with syntax? # (Read 423 times) previous topic - next topic


But the logical OR is the same case as 0b00001 (aka true), hence the identical case error.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.


Feb 02, 2013, 07:37 pm Last Edit: Feb 02, 2013, 07:39 pm by lloyddean Reason: 1
'OR' better yet one case state can fall into the next -

Code: [Select]

case 0b00010000:
case 0b00001000:

cases statements need not be in numerical order.


Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)


Go Up