Home » DEVELOPERS » Programming the MRduino with Arduino » switch() – API arduino switch() Description Read the switch state. Syntax switch() Parameters None. Returns The switch state. Exemples # switch state state = switch();