Skip to content

SL: Configure a switch

FAST Serial Protocol: Overview & First Steps

This documentation section is about the FAST Serial Protocol (FSP) commands, which are the low-level commands a host computer sends to a FAST board. Most FAST Pinball makers do not need to know about these details, since the pinball game framework (such as the Mission Pinball Framework) handles this communication for you.

If you're writing your own game framework, read the overview of how FSP works and how to connect first.

Note that this SL: command is valid for the FAST Neuron and FAST Retro controllers. The FAST Nano Controller use the command SN: instead of SL:. All syntax and parameters are the same.

Configure debounce times and output parameters for a switch

SL:<SWITCH NUMBER>,<MODE>,<DEBOUNCE_CLOSE>,<DEBOUNCE_OPEN>

<SWITCH NUMBER>

Any switch ID number, in hex.

<MODE>

0 = Do not report any switch state changes to the host computer.

1 = Report normally.

2 = Report inverted, for "normally closed" (NC) or opto switches.

<DEBOUNCE_CLOSE>

Time to debounce switch close in ms. Default 2 ms (02 hex). 256 ms max (range 00-FF hex).

<DEBOUNCE_OPEN>

Time to debounce switch open in mS. Default 20 ms (14 hex). 256 ms max (range 00-FF hex).

Example:

SL:2,1,20,10<CR>

Set switch 0x02 to report normal, debounce close time is 32 ms (20 hex), Debounce open time is 16 ms (10 hex).

Response

SL:P

Documentation Feedback? Requests? Confused?

Hi! I'm Brian, and I'm responsible for the documentation at FAST Pinball. If you have any feedback, requests, corrections, ideas, or any other thoughts about this documentation, please let me know! You can email me at brian@fastpinball.com. Thanks!

N or > jump the next page, P or < for previous, search with S or ?