Looks fine to me, a GUI wrapper for avrdude. I can’t really say much about GUIs or Windows or OSX though, since I don’t use them. Perhaps someone else has thoughts? Does AVR Studio have avrdude stuff built in?
My typical development session looks about like this:
tk @ home : ~/> cd src/torches/sandbox/ToyKeeper/foo
tk @ home : foo/> gvim foo.c
tk @ home : foo/> ../../bin/build.sh foo
tk @ home : foo/> ../../bin/flash.sh foo.hex
tk @ home : foo/> ../../bin/build.sh foo
tk @ home : foo/> ../../bin/flash.sh foo.hex
tk @ home : foo/> ../../bin/build.sh foo
tk @ home : foo/> ../../bin/flash.sh foo.hex
...
Except I don’t have to type most of that. The tab key auto-completes a lot of things, and the repeated commands at the end are simply “up, up, enter”. And I left out the revision control commands, but I recommend using bzr or git if you want to do much serious development.
Does anyone know if there is firmware that works similar to the FT NANJGs, i.e., where you can switch between one of 2 mode groups via clicking in low mode and which would work with a single FET driver with PWM on pin 6 on an ATTINY13A:
Group 1: Low - Medium - High
Group 2: Low - Medium - High - Strobe - SOS
Also, where it’d be fairly easy to modify the modes in the mode groups in the source.
Basically, I want to have a UI in a ATTINY13A-based FET driver that mimics the FT NANJGs, but where I’d probably add a moonlight to both mode groups.
Using JohnyCs star off time how would I get a tubo timer that is like 6 min?
http://bazaar.launchpad.net/~toykeeper/flashlight-firmware/trunk/view/head:/JonnyC/STAR/STAR_off_time/STAR_off_time.c
I see that I need either more possible ticks than 255 or longer than 500ms, but I am not certain what to change.
D’oh. It looks like that includes everything except the first step, the one where it converts a .c file into a .o file. And that’s the one I’m most hoping to see.
In any case, it appears that the new version saves about 6 bytes. I’d like to know what build options it uses to make the result smaller. Maybe it’s just a newer version of gcc, but maybe not.
The main options right now are STAR or NLITE, and neither is quite what you described. I don’t think anyone has done the mode group switch via blink-on-low, because very few people seem to like that. Neither one has blinky modes, either. STAR’s code is open though, if you’d like to use it as a starting point.
It looks like the options make no difference in size, but the version of the compiler does. I’ve currently got 4.7.2 on one box and 4.8.1 on another; it seems debian doesn’t have 4.9.2 yet.
Fortunately, the difference is small… 1002 bytes, 1000 bytes, or 996 bytes (for 4.7.2, 4.8.1, and 4.9.2).
One more question. Does anyone happen to know what causes that whining noise on MED mode. What I mean is with some setups I get it and some I dont. I use the same FET drivers for almost all my lights, just different firmware and emitters, hosts etc.
Right now I have this driver setup with 2 26650s and an XHP70. On low (2) I get no PWM whine, on med (39) I get a bad one. and of course none on high.
I surrounded my one driver that was doing this (Edit: JUST the FET, left room to attach the SOIC clip) with some RTV, seemed to help. I guess duct seal would work as well (search for POTTING here on BLF) and be more temporary if you wanted to remove it later…