LimitSwitch module

class LimitSwitch.LimitSwitch(signal_pin)

Bases: object

get_state()

A function that returns if the switch is currently pressed

Returns:

Informs the robot if the switch has been pressed or not