Module LightSensor :: Class LightSensor
[frames] | no frames]

Class LightSensor

source code

GenericSensor.GenericSensor --+
                              |
                             LightSensor

Abstraction of the EV3 color sensor used in light detection mode.

Instance Methods
 
__init__(self, port) source code
 
activate(self, enable) source code
 
getValue(self)
Returns the reflected light intensity (turns red LED on) or -1, if detection fails.
source code

Inherited from GenericSensor.GenericSensor: getPortId, getPortLabel

Method Details

__init__(self, port)
(Constructor)

source code 
Overrides: GenericSensor.GenericSensor.__init__