mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 00:50:24 +08:00
e6881f0829
There doesn't appear to be any use for only triggering on specific events, so it's just easier to number them sequentially. This makes them smaller values so they take up only 1 byte in the ringbuf, only 1 byte for the opcode in the bytecode, and makes room for more events. Also add a couple of new event types that need to be implemented (to avoid re-numbering later). And rename _COMPLETE and _STATUS to _DONE for consistency. In the future the "trigger" keyword argument can be reinstated by requiring the user to compute the bitmask, eg: ble.irq(handler, 1 << _IRQ_SCAN_RESULT | 1 << _IRQ_SCAN_DONE) |
||
---|---|---|
.. | ||
bluetooth | ||
embedding | ||
hwapi | ||
natmod | ||
network | ||
SDdatalogger | ||
unix | ||
accel_i2c.py | ||
accellog.py | ||
asmled.py | ||
asmsum.py | ||
conwaylife.py | ||
ledangle.py | ||
mandel.py | ||
micropython.py | ||
pins.py | ||
pyb.py | ||
switch.py |