HKJ
(HKJ)
4
Arduino is originally based on programming Atmel microcontrollers (Today they support many other). Most of the microcontrollers are to large for flashlight, but the ATTiny85 is supported by Arduino and is small enough for a flashlight.
This is a possible way to start.