Am in training again all day today - but this is a fix of sorts. The fix will cause the led sequences to play a bit fast if you call any of the play_ functions a lot - I'll work on a better solution later this evening.
play_next - queues a sequence that will play after the currently playing (if one is playing) sequence completes.
Calling play_next in quick succession will always lose the previous 'play_next' - as it does not use the queue properly - but always queues at 'read position+1'. In other words - last writer wins.
So you should only see the last sequence if you queue lots of play_next in quick succession.
play_now - will start playing a sequence immediately - it won't wait for current playing sequence to complete.
Am in training again all day today - but this is a fix of sorts. The fix will cause the led sequences to play a bit fast if you call any of the play_ functions a lot - I'll work on a better solution later this evening.
play_next - queues a sequence that will play after the currently playing (if one is playing) sequence completes.
Calling play_next in quick succession will always lose the previous 'play_next' - as it does not use the queue properly - but always queues at 'read position+1'. In other words - last writer wins.
So you should only see the last sequence if you queue lots of play_next in quick succession.
play_now - will start playing a sequence immediately - it won't wait for current playing sequence to complete.