I was just wandering if anyone happens to have a version of this or some other OS firmware that is a just a traditional L, M, H, Strobe, SOS, with memory?
I think you could probably configure the’s TheStar firmware to do L/M/H/Strobe/SOS with memory, in such a way that the blinkies are hidden. It’s more complicated than that by default though.
Thanks _the_ I appreciate it. Would you possibly be willing to do me one more favor? I have tried and tried to get these files to work and so far had no luck generating any working code, and have not even succeeded at converting a working file to a hex.
Could you possible send me a hex with the second option where its low, med, high, strobe, SOS, with memory in one sequence? No hidden stuff.
If its is something that take much time I would compensate you.
No problem. Please PM me your email address and I'll compile the hex and send it to you.
What kind of mode percentages do you want for L->M->H? Do you want a full 100% high without turbo timer? Any other "annoying" features you would like me to strip away before compiling it?
On- or off-time memory?
..and please try also the one with hidden goodies.. Who knows, you might even like it. :)
Yeah, I kind of assumed the blinkies would need to be hidden. I don’t think I’ve ever heard anyone request non-hidden blinkies before. TheStar has a nice way of keeping those out of the main sequence without disabling memory.
That is fantastic, thank you so much!!! I will PM my info. This driver is not for me it was a request I had from someone else. I will message him and ask if he would like the blinkies to be hidden.
If the strobe and SOS were hidden how would they be accessed?
If so, you might find ToyKeeper/Baton.c useful as a starting point, since it already implements a lock mode toggled by a long long press from off. However, it uses long press while on to advance modes, and short press turns the light on or off in whatever mode was last used. But it might at least be useful as a base for making what you want.
The code is in the firmware repo link in my signature.
Thanks ToyKeeper, I’m using Garrybunk.c from here Index of /torches/garrybunk and made some mods and get all what i want less locking mode and duplicate imputs and outputs.
The extended turbo timer and gradual ramp down you guys helped write for me have served me very well especially when used with the off time memory version.
I’m looking to take it one step further and implement STAR in some higher capacity lights I’ve been using. These lights are typically used at lower outputs for several hours at a time.
What I’m after is a global timer that would turn the light off after 5 hours.
Global in the sense that it would apply to all of the settings on the light. If low, medium, or high was left on for five hours, it would automatically turn itself off.
Is something like this feasible within STAR off time memory?
You should be able to count the WDT ticks in a 16-bit unsigned int. I think the default is 500ms per tick, so 36000 ticks would be about 5 hours. If the code sees the timer has gotten that high, it can turn off the light using the same method the low-voltage protection uses.
It’s possible. The 13A has six in/out ports. However, only five of them are practical as the last one is the reset pin (PB5). Setting the reset pin to be an IO means that you will have to resort to high voltage programming in order to be able to flash the driver again. Other than that, you can do what you want with the five IOs. I think only two of them can do PWM, so these should be your LED outputs. Use two more for the E-switches, and the last you could use as a voltage monitoring input if you want.
Ok. i think to use PB0 as second led output and PB4 as second switch but my question is. Can work attiny13A with two different pwm frecuencys at the same time?
Yes, the attiny13a can do two PWM channels at once, but they share a loop counter. See the “dual PWM” section of the repository index file for a list of projects which support this, as examples of how to do it. The shared loop counter goes from 0 to 255 and each PWM channel has its own ceiling so you can control the output of each independently.