**
**
Posted version 1.3.
Version 1.3 (there was no 1.2) adds new thermal control, dual switch operational modes, and latest TA modegroups.
http://s000.tinyupload.com/?file_id=42489563655022665614 (link is external)
Detailed changes:
-TURBO_TIMEOUT tap-up didn't work, probably fixed (not 100% tested).
-ESWITCH menu lockout didn't work, maybe fixed it, took a stab at it anyway, but no testing. Never was sure I liked it anyway.
-New TA v1.3 modegroups are included. I've also added 1 old mode from original and one hybrid of my own. The modegroup file for details, the extra modes are not well documented yet.
-OTSM_powersave which is not only for OTSM, is now available to save power on attiny13's too now (4mA to 2mA for on-current if similar to attiny25).
-New temperature step-down option, like BLFA6 turbo timeout and tap up, except the drop down is temperature-triggered. A minimum (not max) time in turbo is set to 10s by default.
-Both the minimum time and the level to step down to are configurable. All levels above that will get thermal protection (except strobes, in bistro way, reading temp is too slow to work with strobes).
More space savings, about 50 bytes, but this was mostly re-used by the new thermal stepdown and added modes.
-Trying to clean up cap-timing section and comments, adding clear preprocessor sections for every possible switch and timing combination.
1-switch: no_init, OTC, OTSM
2-switch: Eswitch + nothing, no_init, OTC, OTSM, or lexel mode.
-Dual switch noinit has a better chance of working correctly now (no eswitch or dual switch lights have been fully tested).
-Dual switch OTSM is discontinued for now.
-Dual switch dumbclick option/build is added. by request of Lexel, the power switch does nothing. It comes back on in the same mode it went off.
- Dual switch turboclick option/build is added. Variation of lexel request (that I like), power switch always comes on in first hidden mode (typically turbo).
Ideas for farther ahead:
Try shortening medium click in OTSM, may require adding finer timing resolution for all times, or possibly just early times. (has a cap performance cost, but it's performing better than needed now).
Maybe rework dual switch stuff so every click type can be given assigned an action type in the configs. Hard to keep the programming tight, and clean, but avoids endless options, I don't have a full vision for how to implement it yet, many details.
In particular considering reverse click order for power switch, maybe separately from above plan.
Here are the present build sizes, not updated in the manual:
text data bss dec hex filename
704 0 41 745 2e9 .\bin\battcheck-4channel-dual-switch-HD-attiny25.elf
712 0 41 753 2f1 .\bin\battcheck-4channel-dual-switch-HD-attiny45.elf
712 0 41 753 2f1 .\bin\battcheck-4channel-dual-switch-HD-attiny85.elf
356 0 29 385 181 .\bin\battcheck-biscotti-HD-attiny13.elf
372 0 29 401 191 .\bin\battcheck-biscotti-HD-attiny25.elf
376 0 29 405 195 .\bin\battcheck-biscotti-HD-attiny45.elf
376 0 29 405 195 .\bin\battcheck-biscotti-HD-attiny85.elf
396 0 33 429 1ad .\bin\battcheck-BLFA6_EMU-HD-attiny13.elf
410 0 33 443 1bb .\bin\battcheck-BLFA6_EMU-HD-attiny25.elf
414 0 33 447 1bf .\bin\battcheck-BLFA6_EMU-HD-attiny45.elf
414 0 33 447 1bf .\bin\battcheck-BLFA6_EMU-HD-attiny85.elf
542 0 35 577 241 .\bin\battcheck-classic-HD-attiny25.elf
546 0 35 581 245 .\bin\battcheck-classic-HD-attiny45.elf
546 0 35 581 245 .\bin\battcheck-classic-HD-attiny85.elf
526 0 39 565 235 .\bin\battcheck-custom-HD-attiny25.elf
530 0 39 569 239 .\bin\battcheck-custom-HD-attiny45.elf
530 0 39 569 239 .\bin\battcheck-custom-HD-attiny85.elf
530 0 41 571 23b .\bin\battcheck-default-HD-attiny25.elf
534 0 41 575 23f .\bin\battcheck-default-HD-attiny45.elf
534 0 41 575 23f .\bin\battcheck-default-HD-attiny85.elf
688 0 41 729 2d9 .\bin\battcheck-dual-switch-dumbclick-TA-HD-attiny25.elf
696 0 41 737 2e1 .\bin\battcheck-dual-switch-dumbclick-TA-HD-attiny45.elf
696 0 41 737 2e1 .\bin\battcheck-dual-switch-dumbclick-TA-HD-attiny85.elf
640 0 34 674 2a2 .\bin\battcheck-dual-switch-noinit-TA-HD-attiny25.elf
648 0 34 682 2aa .\bin\battcheck-dual-switch-noinit-TA-HD-attiny45.elf
648 0 34 682 2aa .\bin\battcheck-dual-switch-noinit-TA-HD-attiny85.elf
660 0 41 701 2bd .\bin\battcheck-dual-switch-turboclick-TA-HD-attiny25.elf
668 0 41 709 2c5 .\bin\battcheck-dual-switch-turboclick-TA-HD-attiny45.elf
668 0 41 709 2c5 .\bin\battcheck-dual-switch-turboclick-TA-HD-attiny85.elf
512 0 40 552 228 .\bin\battcheck-TAv1-OTC-HD-attiny25.elf
516 0 40 556 22c .\bin\battcheck-TAv1-OTC-HD-attiny45.elf
516 0 40 556 22c .\bin\battcheck-TAv1-OTC-HD-attiny85.elf
588 0 41 629 275 .\bin\battcheck-TAv1-OTSM-HD-attiny25.elf
596 0 41 637 27d .\bin\battcheck-TAv1-OTSM-HD-attiny45.elf
596 0 41 637 27d .\bin\battcheck-TAv1-OTSM-HD-attiny85.elf
576 0 40 616 268 .\bin\battcheck-TAv1-OTSM-LDO-HD-attiny25.elf
584 0 40 624 270 .\bin\battcheck-TAv1-OTSM-LDO-HD-attiny45.elf
584 0 40 624 270 .\bin\battcheck-TAv1-OTSM-LDO-HD-attiny85.elf
568 0 34 602 25a .\bin\battcheck-trippledown-HD-attiny25.elf
572 0 34 606 25e .\bin\battcheck-trippledown-HD-attiny45.elf
572 0 34 606 25e .\bin\battcheck-trippledown-HD-attiny85.elf
1926 0 42 1968 7b0 .\bin\bistro-4channel-dual-switch-HD-attiny25.elf
1934 0 42 1976 7b8 .\bin\bistro-4channel-dual-switch-HD-attiny45.elf
1934 0 42 1976 7b8 .\bin\bistro-4channel-dual-switch-HD-attiny85.elf
1022 0 29 1051 41b .\bin\bistro-biscotti-HD-attiny13.elf
1112 0 32 1144 478 .\bin\bistro-biscotti-HD-attiny25.elf
1116 0 32 1148 47c .\bin\bistro-biscotti-HD-attiny45.elf
1116 0 32 1148 47c .\bin\bistro-biscotti-HD-attiny85.elf
1078 0 33 1111 457 .\bin\bistro-BLFA6_EMU-HD-attiny13.elf
1216 0 34 1250 4e2 .\bin\bistro-BLFA6_EMU-HD-attiny25.elf
1220 0 34 1254 4e6 .\bin\bistro-BLFA6_EMU-HD-attiny45.elf
1220 0 34 1254 4e6 .\bin\bistro-BLFA6_EMU-HD-attiny85.elf
1670 0 36 1706 6aa .\bin\bistro-classic-HD-attiny25.elf
1674 0 36 1710 6ae .\bin\bistro-classic-HD-attiny45.elf
1674 0 36 1710 6ae .\bin\bistro-classic-HD-attiny85.elf
1744 0 40 1784 6f8 .\bin\bistro-custom-HD-attiny25.elf
1748 0 40 1788 6fc .\bin\bistro-custom-HD-attiny45.elf
1748 0 40 1788 6fc .\bin\bistro-custom-HD-attiny85.elf
1750 0 41 1791 6ff .\bin\bistro-default-HD-attiny25.elf
1754 0 41 1795 703 .\bin\bistro-default-HD-attiny45.elf
1754 0 41 1795 703 .\bin\bistro-default-HD-attiny85.elf
1940 0 41 1981 7bd .\bin\bistro-dual-switch-dumbclick-TA-HD-attiny25.elf
1948 0 41 1989 7c5 .\bin\bistro-dual-switch-dumbclick-TA-HD-attiny45.elf
1948 0 41 1989 7c5 .\bin\bistro-dual-switch-dumbclick-TA-HD-attiny85.elf
1688 0 35 1723 6bb .\bin\bistro-dual-switch-noinit-TA-HD-attiny25.elf
1696 0 35 1731 6c3 .\bin\bistro-dual-switch-noinit-TA-HD-attiny45.elf
1696 0 35 1731 6c3 .\bin\bistro-dual-switch-noinit-TA-HD-attiny85.elf
1912 0 41 1953 7a1 .\bin\bistro-dual-switch-turboclick-TA-HD-attiny25.elf
1920 0 41 1961 7a9 .\bin\bistro-dual-switch-turboclick-TA-HD-attiny45.elf
1920 0 41 1961 7a9 .\bin\bistro-dual-switch-turboclick-TA-HD-attiny85.elf
1724 0 40 1764 6e4 .\bin\bistro-TAv1-OTC-HD-attiny25.elf
1728 0 40 1768 6e8 .\bin\bistro-TAv1-OTC-HD-attiny45.elf
1728 0 40 1768 6e8 .\bin\bistro-TAv1-OTC-HD-attiny85.elf
1812 0 41 1853 73d .\bin\bistro-TAv1-OTSM-HD-attiny25.elf
1820 0 41 1861 745 .\bin\bistro-TAv1-OTSM-HD-attiny45.elf
1820 0 41 1861 745 .\bin\bistro-TAv1-OTSM-HD-attiny85.elf
1792 0 40 1832 728 .\bin\bistro-TAv1-OTSM-LDO-HD-attiny25.elf
1800 0 40 1840 730 .\bin\bistro-TAv1-OTSM-LDO-HD-attiny45.elf
1800 0 40 1840 730 .\bin\bistro-TAv1-OTSM-LDO-HD-attiny85.elf
1658 0 35 1693 69d .\bin\bistro-trippledown-HD-attiny25.elf
1662 0 35 1697 6a1 .\bin\bistro-trippledown-HD-attiny45.elf
1662 0 35 1697 6a1 .\bin\bistro-trippledown-HD-attiny85.elf
I still forgot to remove BLFA6_EMU-attin13. It is too big for an attiny13 and should not be used.