VEX EDR Python API
|
Config Light intensity sensor. More...
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... | |
Config Light intensity sensor.
analognum | analog port the sensor is connected to (1-8) |
def vex.LightSensor.__init__ | ( | self, | |
analognum | |||
) |
Reimplemented from vex.AnalogSensor.
def vex.LightSensor.light_percent | ( | self | ) |
Get the light sensor reading, in percent [0...100].
|
inherited |
Get the raw readout from the sensor.
|
inherited |
Get the calibrated reading, in percent [0...100].