Maybe a microcontroler does that?
Do you know how that works?
Yes.
With the gentLED CHDK2, it outputs pulses 30, 60, 90, 120, 150 and 180 msec long.
With the ordinary gentLED CHDK, it outputs a 400 msec pulse.
The scripts you refer to were written by forum member 'Zeno'.
David