_R-STS01mightyZAP Servo Tester Shield Manual_ENG_V1.2 19D5

IR-STS01 Servo Tester Shield Manual V.1.1
12
5.4. Example- SWITCH
There are 3 x red slide switches on IR-STS01. Users may assign their own function for each mode switch to make various functions.
Example to output logical value of mode switches on Serial monitor
Example to output logical value of mode switch on
serial monitor.
-Buad rate setting of serial monitor with
“Serial.begin()” function.
-Read logical value with “read()” function.
-Output logical value with “print()” function.
User is able to monitor change of logical value on
Serial monitor when each switch changes its
position.