mirror of https://github.com/joan2937/pigpio
Fix issue #355, python module event_callback documentation.
This commit is contained in:
parent
b9e57f6047
commit
9fe95e831c
|
@ -5055,7 +5055,7 @@ class pi():
|
||||||
by calling the tally function. The count may be reset to zero
|
by calling the tally function. The count may be reset to zero
|
||||||
by calling the reset_tally function.
|
by calling the reset_tally function.
|
||||||
|
|
||||||
The callback may be cancelled by calling the event_cancel function.
|
The callback may be canceled by calling the cancel function.
|
||||||
|
|
||||||
An event may have multiple callbacks (although I can't think of
|
An event may have multiple callbacks (although I can't think of
|
||||||
a reason to do so).
|
a reason to do so).
|
||||||
|
@ -5072,7 +5072,7 @@ class pi():
|
||||||
|
|
||||||
cb2.reset_tally()
|
cb2.reset_tally()
|
||||||
|
|
||||||
cb1.event_cancel() # To cancel callback cb1.
|
cb1.cancel() # To cancel callback cb1.
|
||||||
...
|
...
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue