Introduction - If you have any usage issues, please Google them yourself
Similar LED flashlight Three dimming with memory program source code (assembly), the compiler environment: AVR Studio 4, debugging through. Power for 6v lead-acid batteries (lithium batteries can also be used, but to modify the parameters), set undervoltage protection 5.25v, below this value into hibernation, clocked by the fuse bits to 4.8MHz, the power switch as switch and shift, shift operation considered key in quick succession, only the slow switching function, similar to the flashlight dimming.