InternalButton

class wpilib.buttons.InternalButton(inverted=False)[source]

Bases: wpilib.buttons.Button

This class is intended to be used within a program. The programmer can manually set its value. Includes a setting for whether or not it should invert its value.

Creates an InternalButton which is inverted depending on the input.

Parameters:inverted – If False, then this button is pressed when set to True, otherwise it is pressed when set to False.
get()[source]
setInverted(inverted)[source]
setPressed(pressed)[source]