Help how do I do this

I need to run two things simultaneously for example I want bb9e to spin and do different light colours at the same time without it spinning and not being able to flash lights

Hi @AlphabeticallyOrder, welcome to our forum!

Since the Spin block is a blocking operation (i.e. it waits until it completes to execute the next block in your program), you’ll need to implement a non-blocking spin in your own code. One way to accomplish this is to use a loop that repeatedly increments the heading using Heading blocks, which are non-blocking. This way you can mix in other code such as LED blocks in between the heading updates.

The same approach can, of course, be used in JavaScript as well. Let me know if you have other questions.

Happy programming!


SPHERO Email Marketing -