|Related Config File Sections|
Spinners are rotating metal plates which close a switch once per rotation.
In MPF spinners are configured just like normal switches:
switches: s_my_spinner: number: 42 # number depends on your platform
It is very common to count the rotations of your spinner per player. You can eiher use a player variable or a counter for that. This is an example:
switches: s_my_spinner: number: 42 # number depends on your platform # in your base mode add 1 for every rotation to a player variable which you can use in slides variable_player: s_my_spinner_active: spinner_rotations: 1 # in a game mode the player needs to spin the spinner 10 times counters: spinner_rotations: count_events: s_my_spinner_active count_complete_value: 10 events_when_complete: mode_finished