mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
Fix #115
Adds when_held event hook to Button (via extension of the EventsMixin class). Also fixes some minor notes and activates codecov coverage tracking.
This commit is contained in:
@@ -37,6 +37,9 @@ There are also several `mixin classes`_:
|
||||
* :class:`EventsMixin` which adds activated/deactivated events to devices
|
||||
along with the machinery to trigger those events
|
||||
|
||||
* :class:`HoldMixin` which derives from :class:`EventsMixin` and adds the
|
||||
held event to devices along with the machinery to repeatedly trigger it
|
||||
|
||||
.. _mixin classes: https://en.wikipedia.org/wiki/Mixin
|
||||
|
||||
The current class hierarchies are displayed below. For brevity, the mixin
|
||||
@@ -141,3 +144,6 @@ Mixin Classes
|
||||
.. autoclass:: EventsMixin(...)
|
||||
:members:
|
||||
|
||||
.. autoclass:: HoldMixin(...)
|
||||
:members:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user