robotpy_toolkit_7407.sensors.limit_switches package
Submodules
robotpy_toolkit_7407.sensors.limit_switches.limit_switch module
- class robotpy_toolkit_7407.sensors.limit_switches.limit_switch.LimitSwitch(port: int, inverted: bool = True)
Bases:
object
Wrapper class for I2C Limit Switches
- get_value()
Return if the limit switch is pressed or if object is detected (in the case of non-tactile sensors).
- Returns:
bool: True if pressed, False if not.
- class robotpy_toolkit_7407.sensors.limit_switches.limit_switch.MagneticLimitSwitch(port: int, inverted: bool = True)
Bases:
LimitSwitch
Wrapper class for I2C Magnetic Limit Switches
- class robotpy_toolkit_7407.sensors.limit_switches.limit_switch.PhotoElectricSwitch(port: int, inverted: bool = True)
Bases:
LimitSwitch
Wrapper class for I2C PhotoElectric Switches