VEX IQ Python API
Public Member Functions | List of all members
vexiq.Bumper Class Reference

Public Member Functions

def __init__ (self, port=None)
 
def is_pressed (self)
 True if bumper is pressed, False otherwise. More...
 

Detailed Description

 \if lang_en
     **Config** Bumper sensor.
     @param port 1-12, None or omit to autodetect
 \elseif lang_sr
     **Config** Браник сензор.
     @param port порт 1-12, None или изоставити за ауто детекцију
 \elseif lang_ru
     **Config** Бампер датчик.
     @param port 1-12, None or omit to autodetect
 \endif

Constructor & Destructor Documentation

◆ __init__()

def vexiq.Bumper.__init__ (   self,
  port = None 
)

Member Function Documentation

◆ is_pressed()

def vexiq.Bumper.is_pressed (   self)

True if bumper is pressed, False otherwise.

Returns
bool