Automates the use of digital input pins.
More...
Automates the use of digital input pins.
Example :
#define BOARD Versa1
}
{
}
}
{
unsigned char c;
if(c=='L'){
}
else if(c=='E') {
printf("C");
putchar('\n');
}
}
◆ switchSend()
Call at the maximum rate you want to report switches.
- Returns
- Number of channels sent.
◆ switchGet()
char switchGet |
( |
unsigned char |
chan | ) |
|
Get the state of a channel.
- Parameters
-
- Returns
- State of the channel.
◆ switchSelect
#define switchSelect |
( |
|
num, |
|
|
|
conn |
|
) |
| |
Select a pin for a switch channel. Assign the pin to the switch channel.
- Parameters
-
num | Number of the channel (first channel = 0). |
conn | Symbol of the pin (example : K1 for connector 1).
|