VEX EDR Python API
Public Member Functions | List of all members
vex.LightSensor Class Reference

Config Light intensity sensor. More...

Inheritance diagram for vex.LightSensor:
vex.AnalogSensor

Public Member Functions

def __init__ (self, analognum)
 
def light_percent (self)
 Get the light sensor reading, in percent [0...100]. More...
 
def raw_value (self)
 Get the raw readout from the sensor. More...
 
def percent (self)
 Get the calibrated reading, in percent [0...100]. More...
 

Detailed Description

Config Light intensity sensor.

Parameters
analognumanalog port the sensor is connected to (1-8)

Constructor & Destructor Documentation

◆ __init__()

def vex.LightSensor.__init__ (   self,
  analognum 
)

Reimplemented from vex.AnalogSensor.

Member Function Documentation

◆ light_percent()

def vex.LightSensor.light_percent (   self)

Get the light sensor reading, in percent [0...100].

Returns
number [0...100]

◆ raw_value()

def vex.AnalogSensor.raw_value (   self)
inherited

Get the raw readout from the sensor.

Returns
number

◆ percent()

def vex.AnalogSensor.percent (   self)
inherited

Get the calibrated reading, in percent [0...100].

Returns
number [0...100]