diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-12-22 00:29:32 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-12-22 00:29:32 +0300 |
commit | d02f6a9956760425188f517f3708c76123e53d2a (patch) | |
tree | 91b60d0baa22fbd9ee1b39162289143b2d80f328 /examples/hwapi/button_reaction.py | |
parent | ef23399e32f03d251942b7a29c720a9cf72a1c26 (diff) | |
download | micropython-d02f6a9956760425188f517f3708c76123e53d2a.tar.gz micropython-d02f6a9956760425188f517f3708c76123e53d2a.zip |
extmod/modutimeq: Refactor into optimized class.
import utimeq, utime
# Max queue size, the queue allocated statically on creation
q = utimeq.utimeq(10)
q.push(utime.ticks_ms(), data1, data2)
res = [0, 0, 0]
# Items in res are filled up with results
q.pop(res)
Diffstat (limited to 'examples/hwapi/button_reaction.py')
0 files changed, 0 insertions, 0 deletions