Struggling with millis() for two tasks

Thanks a7. Another project onto my growing ‘Arduino To Do list’.

Yes, I see now that the the incorrect blue LED timing was by gcjr.

Anyway, I’ll be changing the spec myself shortly, to get closer to the intended program. The main change will be that as well as being used for the regular 500ms highs (at 10s intervals), the blue LED must now also be taken high twice (200ms high/200ms low) as soon as the trigger is validated, directly before the red LED is taken high for 5s. That emulates my CUBE camera button being pressed twice to start recording a video; only a single press is needed for a photo. I’m having to take unwanted photos to keep the camera powered up.

I may therefore be back for more help please!

P.S. I agree about 10s being tedious for testing, but it emulates 160s, just under the ‘keep alive’ time of the tiny CUBE camera, so I want to keep reasonably close to the real use case.

Terry