aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* fixed bug: sunset timer didn't adjust MCU clock speed at low levels,Selene ToyKeeper2020-07-312-3/+6
| | | | | so the moon level was way too dim and used too much power also fixed some sunset timer comments
* added auto-lock function, mostly contributed by SammysHPSelene ToyKeeper2020-07-319-5/+104
| | | | | | (5C in lockout mode to configure it, 5H to turn it off, similar to UI for manual memory)
* made ramping "bump" the sunset timer up a little if it's near the deadlineSelene ToyKeeper2020-07-302-3/+11
|
* fixed bug: 4H from lockout to ramp would immediately activate the sunset timerSelene ToyKeeper2020-07-301-0/+3
|
* fixed bug: ramp mode acted strange if ramp level was changed after turning ↵Selene ToyKeeper2020-07-301-0/+13
| | | | | | | on sunset timer (it kept trying to adjust based on the original brightness, instead of the new brightness)
* fixed bug where light would shut itself off immediately if sunset timer was ↵Selene ToyKeeper2020-07-301-0/+7
| | | | | | | | aborted and then light was turned back on (turn light on, enable sunset timer, turn light off, turn light back on... it would then turn itself off immediately, but it shouldn't)
* moved sunset bump from 3C to 4H, fixed candle sunset behavior (was ↵Selene ToyKeeper2020-07-302-25/+28
| | | | overflowing / wrapping around)
* replaced "goodnight / sunset mode" with sunset timer, which works in both ↵Selene ToyKeeper2020-07-308-130/+155
| | | | | | | | candle mode and regular ramp mode (not finished, but wanted to check in the code before continuing) (still needs the button mappings adjusted to avoid collision with 3C for change-ramp-style)
* reduced ROM another 12+6 bytes with more non-volatile varsSelene ToyKeeper2020-07-302-3/+3
| | | | | (because they don't need to be volatile any more)
* reduced ROM size 56 bytes by making actual_level non-volatileSelene ToyKeeper2020-07-291-1/+1
| | | | | (seems unnecessary now; doesn't change in the middle of an event handler any more)
* reduced ROM 42 bytes by making "emissions" non-volatileSelene ToyKeeper2020-07-291-1/+3
| | | | | (doesn't seem to be needed any more, ever since the IRQ rewrite a few months ago)
* reduced ROM size slightly by making strobe vars non-volatileSelene ToyKeeper2020-07-284-10/+8
| | | | | (they didn't need to be; it was just wasting bytes)
* s/DEFAULT_SIMPLE_UI/SIMPLE_UI/ in a file I forgot to update earlierSelene ToyKeeper2020-07-281-12/+12
|
* reorganized some code to make it cleaner...Selene ToyKeeper2020-07-283-72/+99
| | | | | | | | | | - moved FF strobe loop() logic to an inline function in ff-strobe-modes file - changed function order in anduril.c to put setup+loop first - put common/default case first in setup() - added support for tint ramping on dual-switch lights with power clicky (even though no such lights exist yet) - comment gardening
* moved candle mode to its own file, since it's kinda bigSelene ToyKeeper2020-07-284-138/+194
|
* renamed strobes.* to strobe-modes.*Selene ToyKeeper2020-07-286-22/+22
|
* moved aux LED code into its own fileSelene ToyKeeper2020-07-283-238/+290
|
* renamed off-state.* -> off-mode.*Selene ToyKeeper2020-07-223-10/+10
|
* renamed ramping.* -> ramp-mode.*Selene ToyKeeper2020-07-224-14/+20
|
* renamed lockout.* -> lockout-mode.*, moved user-configurable lockout options ↵Selene ToyKeeper2020-07-224-13/+15
| | | | to config-default.h
* added "make todo" to remind me about stuff I still need to finishSelene ToyKeeper2020-07-221-1/+4
|
* renamed beacon.* -> beacon-mode.*Selene ToyKeeper2020-07-223-10/+10
|
* renamed cfg-default.h to config-default.h, cleaned up some comments, ↵Selene ToyKeeper2020-07-222-31/+51
| | | | organized definitions
* more progress on refactoring Anduril into separate files... nearly done with ↵Selene ToyKeeper2020-07-2230-1357/+2016
| | | | the initial split
* started refactoring anduril into individual files...Selene ToyKeeper2020-07-2119-1028/+1548
| | | | | | | ... messy and very incomplete, but it's a start, and at least it still compiles. (the overall structure is ... weird. mostly because of compiling the entire program plus libraries in a single step, as a single file, to make -fwhole-program work)
* merged fsm branch (mostly because D4v2.5 build targets were merged into KR4,Selene ToyKeeper2020-07-146-16/+24
|\ | | | | | | | | and merging now will be easier than resolving conflicts later)
| * merged Emisar D4v2.5 build targets with Noctigon KR4 build targetsSelene ToyKeeper2020-07-145-133/+19
| | | | | | | | | | (because they're close enough that they can use the same code)
| * merged trunkSelene ToyKeeper2020-07-141-1/+5
| |\
| | * added oweban's flashing guides to the READMESelene ToyKeeper2020-07-081-1/+5
| | |
| | * merged nearly a year of updates from the fsm branch, including the new ↵Selene ToyKeeper2020-07-0673-680/+2561
| | |\ | | | | | | | | | | | | product map
* | | | removed beacon config mode... replaced "click N times" with "hold for N ↵Selene ToyKeeper2020-07-121-28/+26
| | | | | | | | | | | | | | | | seconds" to configure it
* | | | fixed bug: button release events were sending 0 as the arg instead of the ↵Selene ToyKeeper2020-07-121-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | number of ticks the button was held (bug had no effect in any current UIs, but I needed it fixed for a feature I want to add)
* | | | moved all config modes and aux LED config actions to 7C / 7HSelene ToyKeeper2020-07-121-19/+22
| | | |
* | | | allowed simple UI to use stepped ramp, reduced size,Selene ToyKeeper2020-07-121-63/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixed wrong initial brightness on boot or after changing UI style, started making simple UI ramp configurable, made floor/ceil/steps for smooth/stepped/simple use arrays instead of individual vars, generally refactored a bit of ramp-related code
* | | | added lockout 4C -> on, lockout 4H -> floor, and strobe 5C -> momentarySelene ToyKeeper2020-07-121-2/+16
| | | |
* | | | cleaned up s/ceiling/ceil/ and s/muggle_/simple_ui_/ in config filesSelene ToyKeeper2020-07-1223-77/+77
| | | |
* | | | limited simple UI floor and ceiling to muggle mode levels,Selene ToyKeeper2020-07-121-52/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | moved floor/ceiling calculations (mostly) to use only "ramp_floor" and "ramp_ceil" which update based on current mode, s/simple_mode/simple_ui/, made "ceil" vs "ceiling" more consistent
* | | | removed muggle mode, replaced it with simple mode (first pass, incomplete)Selene ToyKeeper2020-07-121-252/+136
|/ / /
* | | made lighted button go low/high based on DEFAULT_LEVEL instead of MAX_1x7135,Selene ToyKeeper2020-07-084-7/+9
| | | | | | | | | | | | | | | | | | | | | because the MAX_1x7135 level is wrong on some lights (like the D4v2.5) ... and generally adjusted anything else necessary to make that work. (including a lower default on D18 and D4Sv2, which were both too high)
* | | fixed D4v2.5 button LED behaviorSelene ToyKeeper2020-07-081-5/+3
| | |
* | | minor formatting cleanupSelene ToyKeeper2020-07-082-8/+7
| | |
* | | added Emisar D4v2.5 support (D4v2 with a KR4 driver, same as KR4 but with ↵Selene ToyKeeper2020-07-084-3/+141
| |/ |/| | | | | lighted button indicator LED support)
* | merged in support for Noctigon K1-SBT90.2Selene ToyKeeper2020-06-012-0/+204
|\ \
| * \ merged from fsm to get latest updatesSelene ToyKeeper2020-06-0127-70/+109
| |\ \ | |/ / |/| |
* | | "SOS" is treated as one "letter" in Morse code... it's not three lettersSelene ToyKeeper2020-06-011-1/+2
| | | | | | | | | | | | | | | (so, don't put the normal inter-letter gap between)
* | | fixed compile error when all strobe modes are disabledSelene ToyKeeper2020-05-141-0/+6
| | |
* | | gave Werner's UI a simple MakefileSelene ToyKeeper2020-05-141-0/+7
| | |
* | | fixed builds of Werner's UI on targets which had been failing (Noctigon K1, ↵Selene ToyKeeper2020-05-142-3/+10
| | | | | | | | | | | | BLF LT1 Lantern, and all attiny1634 targets)
* | | fixed eeprom_wl functions on attiny1634Selene ToyKeeper2020-05-141-10/+10
| | | | | | | | | | | | | | | (didn't build before, due to a data type mismatch)
* | | fixed build of "momentary" example UISelene ToyKeeper2020-05-142-2/+1
| | |