More progress this eve on ramping support in Narsil:
- got lock-out working with same sequence as in non-ramping mode: 2 quick clicks followed by hold
- got battery voltage check working same way also: 1 quick click followed by hold
- got both modes of configuration UI working, again same or similar way as non-ramping, but for the main configuration setting, simply hold the button for 5.5 seconds, which is a full 3.5 seconds longer than a ramping sequence
- changed ramp down - it stops now on moon mode instead of stopping by turning the light OFF
Still to do:
- would like to get the locator LED toggling ON/OFF supported in ramping. Right now I lost that capability
- need to add selection of ramping vs. mode sets to the configuration UI settings
- might be on small bug to fix: after exiting lock-out, looks like 1st click is ignored, then all works fine
- might see if I can clean up the LED output when in these special sequences (lock-out, batt voltage, config UI, etc.)
- would like to get the ramping a little smoother look'n - right now a flicker is noticeable because it's changing PWM levels at 20 times/sec, whcih is somewhat noticeable. Would be better to adjust it closer to 100 times/sec which is possible.
- might want to add in ramping a direct method to Hi/Turbo - possibly a dbl-click or triple-click
Overall liking the smooth ramping. Operation:
From OFF:
- click to last level it was on
- hold ramps up from moon to hi/turbo in 3 seconds, smoothly (currently 64 levels)
From ON:
- click turns it OFF (this level is restored on the click from OFF)
- hold ramps up, accept if it is on hi. If on hi, hold ramps down all the way to moon in 3 seconds, and stops there
It's simple and predictable, least that's my think'n... All the other special stuff is accessible by special sequences.
Thanks to blueb8llz and ToyKeeper for guidance, inspiration and support:
Ramping UI, Defined by blueb8llz (Ray)
Posted here: https://budgetlightforum.com/t/-/72707/10
In this thread on the Meteor M43: https://budgetlightforum.com/t/-/72707
It would need to be single click to turn the light on and off.
Hold switch while light is on, and ramps levels.
Hold switch while light is off, turns on moonlight mode.
Single click turns on light in last used mode including turbo.
Give me this ui, I promise to purchase at least two more units.