Flashlight Firmware Repository

Iā€™m a numpty so I didnā€™t realise narsil needs to be modified to work on this driver. Itā€™s the pic visible now?

It is. I highly doubt that you can compile and flash Anduril or Narsil with the Arduino IDE. :wink: Youā€™ll need comman line avr-gcc and avrdude for compiling and flashing. There are several tutorials how to do it.

Does Narsil work with three channels? Does the pinout match?

Damit this stuff is way too complicated for me. I canā€™t even get the name right. It was andruil.c from toykeepers launchpad. I just tried with command prompt / avrdude and i get a file directory error. I appreciate your willingness to help SammysHP but this is already irritating the c^@p out of me

I donā€™t know if Iā€™m a step closer but in command prompt i got the directory sorted but the hex file cannot be opened or read

Have you got it to compile? How does the command prompt look when you run the build-all script?

I finally got it to flash. It turns out the directory was the issue. I moved the hex file and it worked fine :slight_smile: Now that i got it to work (once at least :stuck_out_tongue: ) i need to learn how to modify the hex file :weary:

Thank you SammysHP. To change the pin you need to modify the file, right? I was hoping for a complete hex file. Maybe I will need to figure out how to create a hex file myself. Last time I tried it just showed me a bunch of errors.

No, just use the FET on the 7135 pin of the MCU.

I have flashed drivers in the past. But after 2 computer crashes and many motorcycle crashes I canā€™t seam to put it all together again.

I have used ToyKeepers README file.
I believe I have downloaded all the necessary files to my HOME folder.
I have connected with an Attiny85.

After compiling an untouched rampingiosv3.c just to test.
I get 6 pages of errors.

Basically a few #warning ā€œdevice type not defined and #error Requested EEPROM_BYTES too big

then about 5 pages of undeclared and implicit declaration.

I believe I am missing a library, or donā€™t have library in path.

Linux or Windows? Iā€™m guessing Linux since you referenced a Home folder. If Linux, are you using the ā€œbuild-all.shā€ script or are you trying to build a single config? When downloading the files, did you maintain all of the folder structures? If not and you just stuck all of the files in the same folder, youā€™d need to fix the directories for all of the #includes.

Using Ubuntu. Vim. avr-gcc. Do I need to add anything to avr-gcc rampingiosv3.c when compiling?

No. But I wouldnā€™t compile with gcc directly. Use the build-all.sh build script.

Does anyone elseā€™s build-all.sh build script not compile 1634 hexes? All the attiny85 hexes show up but none of the 1634 ones get created for me.

Do your config files for the 1634 targets include this towards the top?

// ATTINY: 1634

And does your build-all.sh script include this line?

ATTINY=$(grep 'ATTINY:' $TARGET | awk '{ print $3 }')

I dunno. Iā€™ve been downloading my files directly from the latest revisions on launchpad.

https://code.launchpad.net/~toykeeper/flashlight-firmware/trunk

Is this the right place to get them? I just click the number, 247 at the moment, and then click download tarball

I guess I have to add those lines in if theyā€™re not theyā€™re already?

On another note, how do you guys bring the spaghetti monster files into a project? Do you just copy paste into the projectā€™s folder? Iā€™m not sure how to open anduril in atmel studio as a project so I can build natively in atmel.

The old guides I could find on blf have lost their images/are out of date

Thatā€™s an ancient version, many years old. Which version do you want?

Anduril 1: fsm : Code : Flashlight Firmware Repository
Anduril 2: anduril2 : Code : Flashlight Firmware Repository

Oh I see. Thanks for the link. Is ā€œdownload tarballā€ the right button to click?

Donā€™t know, I use brz on the command line. If it downloads the full repo head it should be correct.

Hello, new user here.

I have been looking for a source code of this 7135 driver: ę·˜å®ē½‘ - 귘ļ¼ęˆ‘å–œę¬¢

5modes: Low-Medium-High ,Recycling; Double-Click at any mode turn to strobe mode; Three times Click at any mode enters into stepless dimming mode (In the current state, the brightness first decreases and then rises. When it reaches lowest or highest, it will flash once and wait for 1 second to continue to increase or decrease. When it is turned off at any time in the stepless dimming state, the brightness at the time of shutdown can be saved.)

So far I havenā€™t found the code. Does it even exist in this repository?

I would like to modify it with a few elements of TKā€™s crescendo firmware. For example, I donā€™t need strobo, but I would definitely use battery check instead.

Iā€™m not an expert, but I believe Crescendo is designed to be used on attiny 13A, 25, 45 or 85 MCUā€™s. (on the 13A there are reduced features) Those are all 8 pin devices. The driver pictured appears to have 10 pins. I donā€™t have any idea what that is but my guess is that it might not be easy to get crescendo to run on that MCU. Chances are there is no open source code for the firmware on that driver, but I am guessing.