Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 1.44 KB

api_generic.rst

File metadata and controls

67 lines (44 loc) · 1.44 KB

Generic Classes

.. currentmodule:: gpiozero

The GPIO Zero class hierarchy is quite extensive. It contains several base classes (most of which are documented in their corresponding chapters):

There are also several mixin classes for adding important functionality at numerous points in the hierarchy, which is illustrated below:

images/device_hierarchy.*

Device

.. autoclass:: Device
    :members: close, closed, value, is_active

ValuesMixin

.. autoclass:: ValuesMixin(...)
    :members:

SourceMixin

.. autoclass:: SourceMixin(...)
    :members:

SharedMixin

.. autoclass:: SharedMixin(...)
    :members: _shared_key

EventsMixin

.. autoclass:: EventsMixin(...)
    :members:

HoldMixin

.. autoclass:: HoldMixin(...)
    :members: