Had another look and the registers are different, there’s no T1616 linear+FET light supported on the new branch yet. I’ll keep hacking on it in the background but I want to be cautious and take my time, especially since I don’t have any suitable hardware to test on (only have a TS10 and LT1S Pro for t1616, both of which have different MCU layouts).
If viewing the driver schematic is risky to modify the firmware of another model.
If that is the idea you have.
I have never seen any schematic only PCB pictures.
I would like to see some of these flashlights or at least the ones I have.
Edit:
I don’t know about flashlights but when I program a micro I use the I/O to my liking if you use another firm it won’t work or you can even activate something to the max.
I also don’t know if there is a standard flashlight driver.
Perfectly understandable!
Thank you though for looking/trying. ![]()
Quick question; is this mod indeed possible in the previous non multi channel branch/version?
Or does this rely on multi channel?
Kinda makes sense that it might, at keast from my point of view, about the multiple ramps, unsure if they would each be channels, or are to nake tis much sepparate memory possible?
Yes, I’m thinking about just playing with(learning I hope) the code in the older version, for the SP36 and see what I get
Figured at least I couldn’t fry it with mistakes, just might not get what I want lol.
Ah yes Ok, not technically bricked(good to know though), but if it fries the rest, its an academic point lol.
Good luck! I dont think I’m that brave right now!
I think practically mine is solved by ordering a Wurkkos FC13… and lego-ing the boby/battery/ color I want, since the builds @wolfgirl42 did for me do include that light.
Non practically (because really, how much of thus stuff really is?
) I will still play around with it/wait on the fine folks here to be able to do it, if only on the principle that it Should be possible in the exact light I want. Lol. But I can wait , no worries.
Yes but you can do the same if you need. I like to write with all brilliant head and they spend a lot of time for free without returns
Yeah, no reason it wouldn’t be. My life is kind of a total dumpsterfire right now so I have no idea when I’ll have the time, but I’ll give it a go when I can (sometimes coding is a relaxing activity for me and I’m definitely extremely stressed at the moment, but also potentially very busy soon).
Yeah no worries! No rush from me. ![]()
I hope that fire at least slows down some for you!
In the mean time I’ll play around with it…
FInally realized(unless I’m mistaken again lol) it is just C++, and I should be able to compile with any C compiler… stop fighting getting the methods outlined here(Docker etc) to work on my machine and just grab an IDE with a compiler that Will run on my hardware…
Code::Blocks with MinGW looked easy to install, so I’ll play with that. Although I might edit in POV-Ray or Notepad++ simply for better editor/syntax highlighting that I’m used to.
My only worry is how I tell this compiler what a ATtiny 1616 is… thats including a library somewhere I imagine, I’ll just have to find it…
BUt anyway, this is far and away topic drift for here… I’ll not bore ya’ll with my general programming learning curve.
I’m sure I’ll be back with Andril questions though. ![]()
It is C, not C++. And you need a compiler supporting the target and having the specific avr-libc libraries and support pack.
Yes, so far I can tell this compiler does that, if I’ve managed to download the right AVR toolpath and library that is supposedly compatible… Just have to make it all work together.
Thank you.
Thanks to @ToyKeeper for the anduril2-r657.
Thanks to @wolfgirl42, thanks to @starryalley, now my TS21 has Firework Mode
.
- my TS21 has UPDI pads (R G V)
- 15C: Version check:
2022 02 08 0614- 0614 = sofirn-sp36-t1616
Sofirn-SP36-t1616 / BLF-Q8-t1616 files for TS21
-
I “made”
hwdef-Wurkkos_TS21.h, which is simply a renamed copy ofhwdef-BLF_Q8-T1616 -
I “made”
cfg-wurkkos-ts21.h,
copied the contents ofcfg-sofirn-sp36-t1616.handcfg-blf-q8-t1616.hfiles. -
Plus some other mods from SiteRelEnby modded anduril2
(mode mappings and Fireworks). -
Plus SammysHP’s mod
(AUTO_REVERSE_TIME mod)-
1H: ramping up,
immediately 1H again: ramping up. -
no waiting for 1 second.
-
basically 1H always ramping up (except when at ceiling, 1H: ramping down).
-
2H: ramping down.
-
Added this to the header file:
#define AUTO_REVERSE_TIME (TICKS_PER_SECOND / 5)
You can still use any IDE you want to edit the code (personally, I use Vim, better than an IDE
)and then compile using the Docker builder.
hallo everyone,
what is DYN_PWM? dynamic PWM?
I read this in @gchart TS10 header file:
#define USE_DYN_PWM
~gabe/flashlight-firmware/anduril2
So far I’ve found this in TS10’s header file but not in other Flashlight’s header file.
Just above in the commented line it tells you and when it finishes the commented lines of the D4 model it gives you the values that this mode will use.
But someone can confirm it for you, I have only looked over it a little bit.
same as the BLF Q8 T1616, mostly (added Dynamic PWM)
–pwm dyn:63:2048:255
It is the same version as my SC31Pro looks very old.
I like what you have added from various mods.
From Anduril I liked the candle mode but on the SC31Pro I don’t notice well the candle effect it doesn’t flicker it’s almost lit a little variation but it’s not a candle effect.
I don’t know what it could be, maybe changing the values will improve it.
The tornera mode if you can see the changes.
Does it happen to you being the same version?
I don’t know if it is because of the slower hardware to execute the variations in candle mode or putting a diffuser helps.
If I record a video I will show it to you.
The problem is that the docker builder won’t run on this machine, windows 8.1 predates any compatibility there.
I’d just do it all in linux, but the only machine I have in that can’t connect to any internet to install anything… its a bare bones ubuntu install, and I’m doubting the right C library for this hardware. And I learned a long time ago that side loading packages especially on ubuntu goes into a deep looping “dependency hell” as we used to call it. I should set the thing up and check whats there and whats not… but I hate trying to use linux so much anymore, I gave up on that a decade ago, nothing ever works right.
(Boy do I miss the days where EVERYTHING came with the install… but thats going back 20 to 25 years to distros that dont exist anymore that were a LOT smaller lol)
I’ll figure it out eventually.
I think I have everything figured that will give me a compiler with the proper support on Win8.1, just need to find time to install it all to see if it actually supports it or not.
Why use an outdated OS when win10 runs on pretty old hardware and is a free update ?
I don’t use Windows but I install it, and 8 was one of the worst versions.
I advise you to move to Windows 10 you will see that it will go finer even on older hardware, they did it right.
I can’t talk about win 11 because I haven’t installed any.
Make sure before backups and programs you use if they are compatible lest you use daily applications that do not work in win10 and lose everything.
Just a heads up.
+1 to that: vim (or even plain vi) on a screen window, plus another window with bash to run the compiler/flasher/etc, is timeless and the best IDE there will ever be ![]()
:help terminal ![]()
unfortunately I didn’t test the candle mode so I can’t give you a comparison.
now my TS21 doesn’t have candle mode anymore.
my strobe modes are: bike flasher, party strobe, tactical strobe, fireworks.
my only flashlight that still has candle mode is my old SC31 Pro (anduril1), as far as I can remember the candle mode was OK, good flickering almost like a real candle, very good artificial candle.
Yes! I saw it with anduril 1 in review and it was real.
But with anduril 2 I don’t notice anything as if there are hardly any changes.
I turn up the brightness and it’s still the same, it’s not what I saw it going up and down randomly.
Thanks for checking.