| ??? 10/01/02 14:06 Read: times |
#29953 - RE: using one key for multipl operation |
if (button == 0)
{ Delay (value); //value delay for 5 sec if (button == 0) { task2 (); } else { task1 (); } } Jhon I would use something like this in my main function assume pushing the button makes button = 0 then the code delays and checks the state of the button again -- and depending on the state of the button task 1 or 2 will be preformed you will have to create a Delay function also if you start task 1 and 2 with a while (button == 1) you can break out of the task or mode by pushing the button sorry about the half post have fun Casey |
| Topic | Author | Date |
| using one key for multipl operation | 01/01/70 00:00 | |
| RE: using one key for multipl operation | 01/01/70 00:00 | |
| RE: using one key for multipl operation | 01/01/70 00:00 | |
RE: using one key for multipl operation | 01/01/70 00:00 |



