Tom E wrote:
I tried combining my e-switch version with my NOINIT (power switch) in order to get full functionality on both switch's, but ran out of code space. I just ordered a few ATTiny45's - they have 4 * code and data space. There's been some successful porting effort goin on, so hoping I can get these up and running.
Update: Mission Accomplished! Got it working now on a ATtiny45. Some details here: https://budgetlightforum.com/t/-/34900, post #115.
At the above link, Tom E wrote:
. . . I did get brown out detection OFF time method working, and it's working in the eswitch version. So, I have firmware that is 1074 bytes running on a 45, about 26% code space used, and has a fully functioning power clicky switch support with mode memory and OFF time support, as well as full e-switch support! Best Of Both
. Dang, this is getting easy...
Using that Fuse calculator too, I am using these fuse values to enable this combo of features:
-Ulfuse:w:0xE2:m -Uhfuse:w:0xdf:m -Uefuse:w:0xfe:m
Basically, I melded the STAR_NOINIT stuff into my eswitch version. This is where I ran out of code space before, and why I got into the 25/45/85's, specially since ImA4Wheelr got it basically up initially.
For the fuses, I analyzed what was done for the full brown-out detection, and made the same settings for the 45 family. With the Fuse Calculator, it was pretty easy to do.
Really sounds complicated to combine those functionalities. Would love to try in a couple of lights if you at a point you wouldn't mind sharing it. Could it be used in a e-switch light to assist with lock out? Something like, the light can't be turned off with the momentary switch. Would force user to "lock out" to turn off. That way, the risk of forgetting to lock out is significantly reduced.
. Dang, this is getting easy...