Error in my code help

It’s a substantial task…
You need to think of your code as ‘event driven’ rather than linear/sequential.

There are MANY threads on here about learning and implementing millis timing, but you need to take on the load ! :frowning: