mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
Merge pull request #298 from lurch/new_source_tools
New source tools: booleanized, pre_periodic_filtered & post_periodic_filtered
This commit is contained in:
@@ -10,7 +10,7 @@ the :attr:`~gpiozero.SourceMixin.source` and
|
||||
library. These utility routines are in the ``tools`` module of GPIO Zero and
|
||||
are typically imported as follows::
|
||||
|
||||
from gpiozero.tools import scaled, negated, conjunction
|
||||
from gpiozero.tools import scaled, negated, all_values
|
||||
|
||||
Given that :attr:`~gpiozero.SourceMixin.source` and
|
||||
:attr:`~gpiozero.ValuesMixin.values` deal with infinite iterators, another
|
||||
@@ -29,6 +29,8 @@ Single source conversions
|
||||
|
||||
.. autofunction:: absoluted
|
||||
|
||||
.. autofunction:: booleanized
|
||||
|
||||
.. autofunction:: clamped
|
||||
|
||||
.. autofunction:: inverted
|
||||
@@ -37,8 +39,12 @@ Single source conversions
|
||||
|
||||
.. autofunction:: post_delayed
|
||||
|
||||
.. autofunction:: post_periodic_filtered
|
||||
|
||||
.. autofunction:: pre_delayed
|
||||
|
||||
.. autofunction:: pre_periodic_filtered
|
||||
|
||||
.. autofunction:: quantized
|
||||
|
||||
.. autofunction:: queued
|
||||
@@ -56,10 +62,10 @@ Combining sources
|
||||
|
||||
.. autofunction:: averaged
|
||||
|
||||
.. autofunction:: summed
|
||||
|
||||
.. autofunction:: multiplied
|
||||
|
||||
.. autofunction:: summed
|
||||
|
||||
Artificial sources
|
||||
==================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user