Package nxt :: Module sensor :: Class DigitalSensor

Class DigitalSensor

source code

object --+    
         |    
    Sensor --+
             |
            DigitalSensor
Known Subclasses:

Object for digital sensors

Nested Classes
  __metaclass__
Metaclass which adds accessor methods for I2C addresses
Instance Methods
 
__init__(self, brick, port)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
i2c_command(self, address, value) source code
 
i2c_query(self, address, n_bytes) source code
 
get_factory_scale_divisor(self) source code
 
get_factory_scale_factor(self) source code
 
get_factory_zero(self) source code
 
get_measurement_units(self) source code
 
get_product_id(self) source code
 
get_sensor_type(self) source code
 
get_version(self) source code
 
set_input_mode(self) (Inherited from nxt.sensor.Sensor) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  I2C_DEV = 2
Properties

Inherited from object: __class__

Method Details

__init__(self, brick, port)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)