Package nxt :: Module sensor

Module sensor

source code

Classes
  Type
Namespace for enumeration of the type of sensor
  Mode
Namespace for enumeration of the mode of sensor
  Sensor
Main sensor object
  DigitalSensor
Object for digital sensors
  CommandState
Namespace for enumeration of the command state of sensors
  AnalogSensor
Object for analog sensors
  TouchSensor
Object for touch sensors
  LightSensor
Object for light sensors
  ColorSensor
Object for color sensors
  SoundSensor
Object for sound sensors
  UltrasonicSensor
Object for ultrasonic sensors
  AccelerometerSensor
Object for Accelerometer sensors.
  GyroSensor
Object for gyro sensors
Variables
  PORT_1 = 0
  PORT_2 = 1
  PORT_3 = 2
  PORT_4 = 3
  I2C_ADDRESS = {0: ('version', 8), 8: ('product_id', 8), 16: ('...
  I2C_ADDRESS_US = {64: ('continuous_measurement_interval', 1, T...
  __package__ = 'nxt'
Variables Details

I2C_ADDRESS

Value:
{0: ('version', 8),
 8: ('product_id', 8),
 16: ('sensor_type', 8),
 17: ('factory_zero', 1),
 18: ('factory_scale_factor', 1),
 19: ('factory_scale_divisor', 1),
 20: ('measurement_units', 1)}

I2C_ADDRESS_US

Value:
{64: ('continuous_measurement_interval', 1, True),
 65: ('command_state', 1, True),
 66: ('measurement_byte_0', 1, False),
 67: ('measurement_byte_1', 1, False),
 68: ('measurement_byte_2', 1, False),
 69: ('measurement_byte_3', 1, False),
 70: ('measurement_byte_4', 1, False),
 71: ('measurement_byte_5', 1, False),
...