Using a keyswitch to select a function (and announce the change..)


hi all,

for new project have bought keyswitch 3 positions want use control project. @ moment idea use switch case construction can switch between 3 functions use. approach doesn't let me handle switch.

for example send message lcd screen when switch 1 case another.

code: [select]
switch(mode) {
case 2:
menu2();
break;
case 3:
menu1();
break;
default:
readtag();
break;
}


where mode determined position of switch.

how this?

i don't see wrong little bit of code have posted don't understand question.

maybe need post whole sketch and/or explain problem more clearly.

...r


Arduino Forum > Using Arduino > Project Guidance > Using a keyswitch to select a function (and announce the change..)


arduino

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support