Multiple LED settings!

Some more work done on the code, check video.

Now the Grimlight has functionality to change lighting effect. The light is switched on and off by holding a magnet close for a short time. If a magnet is present for about 10 seconds on the other hand it changes effect. Currently three effects are implemented, flickering, steady and pulsing.

The controller remembers current state while in sleep, so it is possible to configure with the effect you want only once (if battery is changed state is lost thought).