• Paul Sokolovsky's avatar
    extmod/modutimeq: Refactor into optimized class. · d02f6a99
    Paul Sokolovsky authored
        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)
    d02f6a99