Battery operated flashlight whose intensity decreases with time

Does this help for a start? <3

Flashlight in C++