|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
||||
|
||||
|
Re: IR Sensor
instead of having it do the actual actions when you press the button you can have it set a variable with the button, then it does a certain routine depending on the button pressed. Example:
Code:
unsigned char test;
if(rc_dig_in01)
test=1;
if(rc_dig_in02)
test=2;
if(rc_dig_in03)
test=3;
if(rc_dig_in04)
test=4;
if(test==1)
(routine a)
etc
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IR Sensor | fabalafae | Programming | 1 | 19-01-2008 16:53 |
| Sensor | Molten | Programming | 3 | 17-02-2007 17:43 |
| Sensor or no Sensor For Autonomous mode | Kyle1010 | Programming | 14 | 22-01-2003 13:10 |
| Sensor Q | Brew | Technical Discussion | 2 | 10-02-2002 12:48 |
| Sensor | Oakridege_665 | Technical Discussion | 5 | 10-01-2002 16:53 |