Techno-Kludging: Simulate a 40Hz flash through code

Here is my system diagram

diagram
diagram
diagram

Making the Screen Flash With Code

Flashing Using Frame Rate

Flashing Using Milliseconds