Previously I tried (TICKS_PER_SECOND / 3) ,
it was not enough. (TICKS_PER_SECOND / 5) gives me the best result so far.
1H: ramping up. Release and immediately 1H again: ramping up. Very satisfying.
I’m curious on how people do that mod…
Is there a different method somehow?
It’d be easy to disable auto reverse for a custom build, probably just a few lines to change. At the moment there isn’t a feature flag for that, but it’d be fairly easy to put behind one. Personally I don’t mind auto reverse, I guess I never considered some people don’t like it (but then again, some people like 4C ramp → lockout , and that’s one of the very the first things I changed )
I think I read it somewhere in one of the source files (I don’t remember which one), it’s mentioned 1 tick is 1/62 of a second. That does’t look like 20MHz (or even 3.33MHz)? attiny1616 is 20MHz right?
but yeah the number does’t really matter, a TICKS_PER_SECOND is one second. 10 TICKS_PER_SECOND divided by 5,
or 100 TICKS_PER_SECOND divided by 5,
they’re both 1/5 of a second (just with different number of ticks).
i don’t care how many ticks it is,
just gimme 1/5 of a second (200ms)
so the MCU, the firmware, do care about the “ticks” , it’s their lingo
Now you know that I don’t know what I’m talking about
The code that interacts with it is if (arg == AUTO_REVERSE_TIME) ramp_direction = 1;, which is evaluated every EV_tick (default every 16ms) where arg is the number of frames since the current state or event started, so 0 should work AFAIK, but if not, just try 1 instead.
I have another thing to “debug”.
I built hex files for my SC21 Pro, with multi-channel-r721. Reflashed OK. factory reset as usual.
test: everything is normal,
party strobe & bike flasher & firework mode: OK,
custom mode mappings work as good as before (as with hex file built with anduril2-r657).
basically everything is OK, except one:
tactical strobe mode: it doesn’t flicker at all, it’s steady like the regular ramp mode. it’s adjustable as usual though. can be adjusted to get the std “tactical” strobe. then tactical strobe mode works as expected.
but, after factory reset it’s back to the steady non-flickering tactical strobe mode.
my “cfg-sofirn-sc21-pro.h” file (it’s actually named cfg-0632.h to differentiate it from the standard/original multi-channel-r721’s cfg file) is a hodgepodge with some custom mods, that maybe the cause of the tactical strobe mode abnormality.
thanks so much for pointing that out
I’ll look into that later when I get time.
If I can’t get it right it’s not a super big problem, I still have very good hex files from anduril2-r657 (will all the favorite mods).
I’ll probably try to adapt the fancy “version-check-mode” (XXXX-YYYY-MM-DD, using aux LED, with “buzz” of the main LED) from multi-channel-r721 to the a2-r657.
(is it called porting / backporting?). And the fancy batt-check and temp-check which have an option to use aux or main LED.
I’ve learned some from adapting/copying your firework mode. thanks again for that.
I have read a lot of the files of anduril2-r657,
not exactly know how everything works,
but at least knowing what works for custom mod mappings, firework mode, disable lightning mode, AUTO_REVERSE_TIME etc.
AUTO_REVERSE_TIME 0 doesn’t really work. It compiles OK. Flashed OK. But the light can’t ramp down; 1H and 2H both ramp up . 1 works great. the effect/feel is like TICKS_PER_SECOND / 5
TICKS_PER_SECOND / 5 is 1/5th of a second, right? AUTO_REVERSE_TIME 1; what does 1 mean? 1 tick?
I built another hex file with anduril2-r657, and my tactical-strobe was broken as well, so it’s not about the multi-channel.
My tactical-strobe abnormality, it’s from me messing with the strobe-modes.h, I changed the order of the strobes, separating party-strobe and tactical-strobe;
// rearrange the strobes?
#ifdef USE_STROBE_STATE
typedef enum
{
#ifdef USE_PARTY_STROBE_MODE
party_strobe_e,
#endif
#ifdef USE_TACTICAL_STROBE_MODE
tactical_strobe_e,
#endif
////////////////////////
#ifdef USE_FIREWORK_MODE
firework_mode_e,
#endif
////////////////////////
#ifdef USE_BIKE_FLASHER_MODE
bike_flasher_e,
#endif
// lightning and candle are disabled in
// my cfg.h file.
// now let's comment them out:
/*
*
#ifdef USE_LIGHTNING_MODE
lightning_storm_e,
#endif
#ifdef USE_CANDLE_MODE
candle_mode_e,
#endif
*
*/
strobe_mode_END
} strobe_mode_te;
const int NUM_STROBES = strobe_mode_END;
Now Strobe Modes are normal.
I’ll revisit my multi-channel build later.(especially regarding the tactical-strobe. as I thought it was because of me mixing/hodgepodging anduril2-r657 and multi-channel-r721, turned out it’s me rearranged the strobe modes inappropriately)