![background image](http://html1.mh-extra.com/html/rabbit/rabbitcore-rcm3305/rabbitcore-rcm3305_user-manual_3118743050.webp)
44
RabbitCore RCM3305/RCM3315
5.2.6.3 Switches, LEDs, and Relay
Reads the state of a switch input.
PARAMETERS
swin
is the switch input to read:
2—S2
3—S3
RETURN VALUE
State of the switch input:
1 = open
0 = closed
SEE ALSO
brdInit
Controls LEDs on the Prototyping Board and on the RCM3305/RCM3315.
PARAMETERS
led
is the LED to control:
0 = red User LED on RCM3305/RCM3315
3 = DS3 on Prototyping Board
4 = DS4 on Prototyping Board
5 = DS5 on Prototyping Board
6 = DS6 on Prototyping Board
value
is the value used to control the LED:
0 = off
1 = on
RETURN VALUE
None.
SEE ALSO
brdInit
int switchIn(int swin);
void ledOut(int led, int value);
Содержание RabbitCore RCM3305
Страница 6: ...RabbitCore RCM3305 RCM3315...
Страница 14: ...8 RabbitCore RCM3305 RCM3315...
Страница 22: ...16 RabbitCore RCM3305 RCM3315...
Страница 28: ...22 RabbitCore RCM3305 RCM3315...
Страница 70: ...64 RabbitCore RCM3305 RCM3315...
Страница 106: ...100 RabbitCore RCM3305 RCM3315...
Страница 144: ...138 RabbitCore RCM3305 RCM3315...
Страница 160: ......