The video shows the led alternating between blinking and glowing using a StateMachine objet and two State inherited objects.
When it comes to program complex interactions with Adrduino, we may benefit from using state machines. This allows to separate the code needed to manage different states of the applications and easily switch from one stat to another.