I called it ML, but it may not be a true ML to some. It’s around 1%. For my tastes, that’s just about right for reading and navigating a dark house at night.
And LB, you’re spot on! I don’t like anything more than 4 modes. I lose track of where I’m at and they start blending in together.
Also, I think I’ve settled on name: Babka. It’s a Polish bread, in keeping a tie back to the Biscotti name (types of bread, starts with a B).
And I’m think of creating a second version that drops Biking Strobe (to make space, and it’s something I’d never use) and add a memory toggle, batt check toggle, etc.
Normally 4 modes is about my max on a clicky, but 10% is too bright for me following moon. I'd prefer 5%, 7% at most.
I also prefer memory, but with the reset back to mode #1 so I don't have to nav thru the hi modes to get to the lo mode. This is what I do in my clicky firmware. This feature is also known as "short cycle" memory, maybe first defined or termed by Dr Jones. It has pros and cons, though. Might go to 5 modes with this setup.
I think what I’ve always thought of as “memory” is Short Cycle Memory. Essentially saying that from Hi, you reset back to Low, right? As opposed to going L - M - H - M - L ?
The P20 has a dual-switch setup. And based on reading the manual, it sounds like that MODE button may be an e-switch. If LEDs in the tailcap can blink without the light being turned on, there’s juice flowing even with the light turned off. Such is not the case in your run-of-the-mill clicky.
Cool light though! Nitecore, while expensive, does make some nice lights. My P12GT was my first intro into the li-ion world, had me a bit spoiled
I tried your FW the first time today and it works fine for me. Thank you very much gchart!
It is the only one I found for Attiny13 with LVP, Batt Check, Turbo timer and without hardware modification (is there another one…?). And it can be further customized for my needs :+1:
I hate to keep bothering you. Your version of babka based off biscotti is perfect for me. I finally got biscotti to work however, when I try to compile your babka I get several errors in reference to delay in ms:
Hi Frank, no bother at all! It looks like the compiler isn’t finding the “_delay_ms” function. It should be in the “tk-delay.h” include file. Do you have that file in the same directory as your C file? (or nearby with the C file pointing to appropriate directory)
Also, there’s a new version that I just thought to upload, you can find it here. Highlights:
Simplified Turbo Timer options to just Off / On (instead of Off / 3 min / 5 min)
Lots of optimizations (smarter about INLINE functions, register variables, global vars, etc)
Flexible-length mode groups
Increase from 4 mode group options to 14 (can have up to 16)
Fast Presses redundancy
Option for turbo ramp-down instead of abrupt stepdown (set at compile time)
Room for even more, currently compiles to ~956 bytes
Got the tk-delay.h issue resolved however now when I run it as copied from your page it states it is 1132 bytes and 110.5% full. Do I need to disable features or am I doing something wrong in atmelstudio? I have optimization set for –0s.