The author Tamagotchi does not object to non commercial use of its firmware. In the case of commercial use, it is best to discuss this with the author http://avr.tamatronix.com/
So I translated comments into English. Files in the archive.
http://forum.fonarevka.ru/attachment.php?attachmentid=134424&d=1428392392
Fuse Lo=79 Hi=FD
Modification of LED driver Nanjg 105C 8x7135. You must first modify the driver .
1. This method of determining short clicks remained from the old versions of firmware.
Soldered capacitor 5uF between the first leg of the MC and the ground.
In the 7135x8v2.h you need to uncomment #define CAPACITOR
In most cases capacitor is not necessary.
This is necessary if you have a button with LED lights. Or button FET and through it runs a small current (5uA)
In this case, the driver will turn on every time the new mode, unless you select this define & soldered capacitor.
2. Cut the track on the red line. Сonnected by a wire to the blue line. In the photo you can see the capacitor 5uF on the first leg of the microcontroller (old version).
Pin5 connected to the one chip 7135 and we get Lo modes (PWM 8kHz).
Pin2 connected to the 2*7135 chips
Pin6 connected to the 5*7135 chips
You can specify any value for PWM (0-255) and any combination for Pin5, Pin2, Pin6
In the file 7135x8v2.h
3. Mode Memory or No memory mode #define NOMEM
4. For thermal control you need to solder the NTC thermistor to 3 and 4 legs ore wires it in the right place.
Another way of protecting against overheating - use mode switching timer.
You can select a value in seconds here #define TURBO_TIME
After the timer mode will be reset to the previous one.
If the mode is selected with memory, after power off & turning it on will be used Max mode (TURBO).
5. Switching modes in one click.
6. Available up to five modes of operation with switching from Lo to Hi (#define REVERSE_SW), or Hi to Lo
7. Calibration of temperature control. After a set number of clicks (#define CALIBRATE_CLICKS 12) is heating. If you do a short click the temperature is stored in memory.
If you turn off lights - will reset (off) the thermal control.
8.Calibration Moonlight (ramping) the same way (#define RAMPING_CLICKS 8)
Short click is stored value in memory.
If you have a Problem with the entrance in the Moonlight - check the frequency of the slow strobe. Should be 1 flash per second. If faster - then most likely frequency of the microcontroller overstated. Check Fuse. Must be 4.8MHz
If you select (#define ONECLICKMOON) - exits by a single click. If not selected - three short clicks.
9. In no memory mode is possible to set the starting number mode
10. Option memory uses wear leveling. This means that our driver is not exhausted the resources of records in the EEPROM even with the most ruthless exploitation.
11. Option without memory does not use record in the EEPROM when switching modes.
12. Protection against contact bounce buttons - the driver will not randomly change modes and will not once again trigger protection against battery discharge or overheating.
13. “Sucker” battery - switching to a low-current when the battery is critically low on voltage, and then completely turning power off at Low Battery.
14. Displays the battery voltage is included 4 very quick click the power button. Fully charged - 5 blinks, unloaded - one flash (#define BATTERY_CLICKS 4)
15. You can select the number of short clicks to turn on the battery display modes, strobe, moonlight and ets.
To disable thermal control enter the calibration mode and power off for 2 seconds (or short-click to save the value).
If the thermal control is disabled - when displaying the battery at the end is a series of flashes.