Module zio :: Class SensorChangeEvent

Class SensorChangeEvent

object --+
         |
        SensorChangeEvent

An event which indicates that the value driven in one of the analog input pins has changed by atleast the tigger amount. When the event occurs, registered handlers are invoked with the event object as argument.
See Also:
, Sensor.add_change_handler
Instance Methods
 
__init__(self, analog, pin, value_raw, value, timestamp)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

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

Properties
  analog
The Sensor object associated with the event.
  pin
The index of the pin in which the change occured.
  value_raw
The new value drive on the pin (0 - 0xFFFF).
  value
The new value driven on the pin (0 - Vref).
  timestamp
The relative time in microsec at which the event occured.

Inherited from object: __class__

Method Details

__init__(self, analog, pin, value_raw, value, timestamp)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

Property Details

analog

The Sensor object associated with the event.
Get Method:
_get_analog(self)

pin

The index of the pin in which the change occured.
Get Method:
_get_pin(self)

value_raw

The new value drive on the pin (0 - 0xFFFF).
Get Method:
_get_value_raw(self)

value

The new value driven on the pin (0 - Vref).
Get Method:
_get_value(self)

timestamp

The relative time in microsec at which the event occured.
Get Method:
_get_timestamp(self)