Flashlight Firmware Repository

Maybe. Iā€™ve been meaning to move it to git for a while, because itā€™s much more widely used. I just really donā€™t like some things about Git. In particular, I want to find a way to get its branching to do what I need first. Gitā€™s branch features are one of its weakest points, and although it recently got something vaguely similar to how Bzr works, itā€™s a shallow implementation which leaves a lot to be desired.

I generally have at least a dozen different branches in progress, many of which are long-term and/or private, and each has its own working tree with meaningful state that shouldnā€™t be part of the repository. Thatā€™s trivial to do in Bzr because itā€™s the default and recommended workflowā€¦ but it goes against much of Gitā€™s design so things quickly get awkward. Itā€™s also weirdly tricky to interact with other instances (like GitHub) in terms of single branches instead of entire repositories. It generally grabs or sends all branches and checks out master, which is frequently the wrong behavior.

It looks like if I want similar branch functionality, Iā€™ll probably end up with many many local copies of the entire repositoryā€¦ and then merges end up being much more of a pain.

In general, Iā€™ve found that the default behaviors in Git are almost always the opposite of what I want, so I end up needing a lot of overrides and workarounds. This has greatly slowed down the migration process. Iā€™d love to go back to 2005 and slap Linus around a bit to convince him to change the design.

Probably not. I canā€™t run it, so I canā€™t maintain it.

Yes, a recent update slowed down the rainbow mode because people thought it attracted too much attention.

About 3-click actions not responding, there seems to be an issue of some sort which is very difficult to reproduce on purpose. Usually it can be resolved by cleaning the electrical contacts and making sure the parts are put together tight enough.

However, there are some brand new builds which might help too. Iā€™ve tried to make it much more tolerant of electrical noise, and it may react better now when there is a weak ground contact or something.

There are many requests for that and I think it would be really worthwhile to support Atmel Studio. Though personally I donā€™t understand why because my personal experience with it was very bad.

What kind of maintenance would it need?
What if there were members interested in maintaining it?

I'm using AtmelStudio for Anduril and been posting my full projects. It was easy-peezy

I implemented to DarkHorse indicator led, lockout and candle mode support from Anduril for my headlamp drivers, but i dint find out how to enable LVP for indicator led :frowning:

It is not implemented. This is a fairly simple change near
// TODO: turn off aux LED (s) when power is really low

And how TODO? There is no code and im not a coder :smiley:

I see that weā€™ve had a discussion about it before. :slight_smile:
Sorry, I canā€™t give you a better advice than this. I wonā€™t add this code to the repo before I test it.And I donā€™t have an adjustable PSU yetā€¦.

Itā€™s not that simple. TK is right, a refactor is in order. Fixing it at the spot of the ā€œTODOā€ wonā€™t get all the cases.

I tried hard - no results, I guest only TK can fix it :smiley:

Hi all, Is there any problem with the code of dthoang(dth_Momentary_v1_1.c) ?

I flashed it on my attiny13a, and I see nothing but the blink-on-power.

The driver won't respond to any of the e-switch controls.

I tried flashing STAR-MOMENTARY for example, and it works with no problems.

What might be the problem?

Thanks

Hi everyone I need your help, I have tried the Star-Momemtary code, wonderful code, but I have to ask if you can change some points, I use it with a piezo button and I find it too sensitive, how do I increase debounce for avoid accidental ignition, or you have other things to propose, I also accept your ideas
Thank you so much

You have 2 lines that configure the debounce timing:

maybe try changing DB_REL_DUR to 200ms?

you can use Decimal to Binary converter to find the binary number for your ms.

sorry for misleading you (this definition is a bit mask, no a number), each bit is 16ms, so the max time is 128ms
try:

BTW, are you building a diving flashlight with that piezo switch :slight_smile: ?

Thank you very much
why do you think I canā€™t use a piezo button? Iā€™m using them made of stainless steel that are very good, and also underwater, that you would have other ideas

I didnā€™t say that you canā€™t use it :slight_smile:
I just asked whether youā€™re using it to build a diving flashlight.
I used a piezo switch for a diving flashlight years ago, it was great.

[quote=HiTiT]
You have 2 lines that configure the debounce timing:

maybe try changing DB_REL_DUR to 200ms?

you can use Decimal to Binary converter to find the binary number for your ms.

sorry for misleading you (this definition is a bit mask, no a number), each bit is 16ms, so the max time is 128ms
try:

Hi I tried to do as you said but nothing is still too sensitive, sometimes pressing the button changes twice, you have some ideas

I notice that there are quite a few people who know nothing about coding yet are able to flash firmware. The recent introduction of flashing pads greatly expands this number.
Yet the latest Andruil is not available to them in a binary form. They have to compile the sources which is problematic to quite a few a needless nuisance to a number of others.

I think it would be worthwhile to have some continuous building processā€¦.

Uhhh, someone recently posted a link to a hex file of the latest Anduril build, least I thought, forgot where...

These are the latest builds from the development (not always fully tested) branch. I havenā€™t had any issues with the newest build on my D4V2 Ti.

Sorry I ask a question, do not kill me, itā€™s only recently that I discovered this forum thanks to all, I found this part where you have gathered all the firmware, but there is the possibility of finding some driver projects that you can create, thanks

Thanks, thatā€™s exactly what I was looking for. :+1: