mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
5543b2a9cc
This is useful in situations where the ThreadSafeFlag is reused and needs to be cleared of any previous, unwanted event. For example, clear the flag at the start of an operation, trigger the operation (eg an I2C write), then (a)wait for an external event to set the flag (eg a pin IRQ). Further events may trigger the flag again but these are unwanted and should be cleared before the next cycle starts. |
||
---|---|---|
.. | ||
__init__.py | ||
core.py | ||
event.py | ||
funcs.py | ||
lock.py | ||
manifest.py | ||
stream.py | ||
task.py |