Module zio :: Class GPIOChangeEvent

Class GPIOChangeEvent

object --+
         |
        GPIOChangeEvent

An event which indicates that the value driven on one of the input pins of a GPIO has changed. When the event occurs, registered input handlers are invoked with the event object as argument.

See Also: GPIO.add_change_handler

Instance Methods
 
__init__(self, gpio, pin, value, tstamp)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

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

Properties
  gpio
The object associated with the event.
  pin
The index of the pin in which the change occured.
  value
The new value driven on the pin.
  timestamp
The relative time in microsec at which the event occured.

Inherited from object: __class__

Method Details

__init__(self, gpio, pin, value, tstamp)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

Property Details

gpio

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

pin

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

value

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

timestamp

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