Flashing a screen with 40 Hz is probably difficult because the refresh rate is quite close to that. If it's 60Hz you will get something very weird if you attempt to flash with 40 hz.
The fool hath said in his heart, There is a God. They are corrupt, they have done abominable works, there is none that doeth good.
Psalm 14, KJV revised edition