I’m am working on some lighting animations for our robot this year and during testing, I was using Timer.delay() for most of the functions such as filling up the strip from the middle to outside or from one side to the other. I soon realized that the delay function halts the thread the code is running on and I wondering what would be the best way I could set up a timer that would not cause any issues with the robot running normally.
Link to code: https://gist.github.com/zippy36jr/bf8390952567e09e4120259c0afb05b4