![background image](http://html1.mh-extra.com/html/rabbit/rcm3365/rcm3365_user-manual_3124182054.webp)
48
RabbitCore RCM3365/RCM3375
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 RCM3365/RCM3375.
PARAMETERS
led
is the LED to control:
0 = red User LED on RCM3365/RCM3375
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);
Summary of Contents for RCM3365
Page 6: ...RabbitCore RCM3365 RCM3375 Schematics 157...
Page 14: ...8 RabbitCore RCM3365 RCM3375...
Page 24: ...18 RabbitCore RCM3365 RCM3375...
Page 72: ...66 RabbitCore RCM3365 RCM3375...
Page 108: ...102 RabbitCore RCM3365 RCM3375...
Page 142: ...136 RabbitCore RCM3365 RCM3375...
Page 148: ...142 RabbitCore RCM3365 RCM3375...
Page 164: ......