Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement channel_uses_aux() (Fixes issue #29) #33

Open
wants to merge 34 commits into
base: trunk
Choose a base branch
from

Commits on Dec 17, 2023

  1. Implement channel_uses_aux() (Fixes issue ToyKeeper#29)

    Define when a channel needs to use aux LEDs as part of its operation,
    allowing that channel to block RGB voltage when on if configured.
    SiteRelEnby committed Dec 17, 2023
    Configuration menu
    Copy the full SHA
    cbef5e7 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. Configuration menu
    Copy the full SHA
    a6fd5cf View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2024

  1. Prevent selecting aux channels in strobes needing brightness control

    This prevents a user from 3Cing into an aux channel while in one of
    these strobes (candle mode and bike flasher) where they will just get
    solid aux as a result, while still allowing aux channels to be used
    for strobes where it might make sense (e.g. lightning, tac strobe).
    
    Also added uses_aux to the TS10v1 aux channel which I forgot before.
    SiteRelEnby committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    d12a278 View commit details
    Browse the repository at this point in the history
  2. fix two separate bugs around RGB aux channels

    First off, green was not defined properly and was instead defined the
    same as a main channel (leading to the behaviour described in the issue
    at ToyKeeper#33 (comment)
    
    Second, fix the actual bug causing aux to not work for blinky modes.
    Specifically, set_level needs to be patched so that instead of (or as
    well as, doesn't really matter) calling set_level_zero(), it will also
    check for if the active channel is an RGB channel and if so them clear
    RGB state.
    SiteRelEnby committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    8703b53 View commit details
    Browse the repository at this point in the history
  3. Fix another aux channel bug

    set_level_zero was causing aux-based channels to be set to off at level
    0 (i.e. level 1). Also added a clarifying comment.
    SiteRelEnby committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    532cf4a View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2024

  1. Configuration menu
    Copy the full SHA
    4949daf View commit details
    Browse the repository at this point in the history
  2. emisar-d3aa: new model number, since this is a new product line

    The 0144 model number is reserved for the successor to the Meteor M44.
    This is Hank's first AA light, so it's assigned as 0161:
    - 01: Emisar
    - 6: product line 6
    - 1: model 1
    ToyKeeper authored and SiteRelEnby committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    90cf97f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    23eab2d View commit details
    Browse the repository at this point in the history
  4. avr32dd20-devkit: use unimplemented "CH" pin as a boost bypass control

    For 3V LEDs on a boost/buck dual fuel driver, this allows
    routing power around the boost converter in li-ion mode,
    to reduce resistance and increase maximum output.
    The AA/NiMH mode is unaffected, and boosts as normal.
    ToyKeeper authored and SiteRelEnby committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    340ba9f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    20cf1ea View commit details
    Browse the repository at this point in the history
  6. enabled eeprom read/write stabilization by default on recent MCUs,

    to prevent corrupt data
    
    This was enabled on more build targets before, but the *_ENABLE_PIN
    definition names changed and the eeprom code didn't, so it was not
    compiled in for a few months on some lights which probably needed it.
    To fix that, it's now enabled by default on everything bigger than
    attiny85, since it doesn't really hurt anything if it's enabled when
    not needed.
    ToyKeeper authored and SiteRelEnby committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    98e71f0 View commit details
    Browse the repository at this point in the history
  7. d3aa: fixed voltage measurement

    ToyKeeper authored and SiteRelEnby committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    d3cd2f8 View commit details
    Browse the repository at this point in the history
  8. d3aa fine-tuning:

    - new ramp
    - production style config defaults (simple mode, Hank config)
    - candle tuning
    - fixed way-too-fast thermal regulation
      (might still be a bit fast, but it's a lot better)
    ToyKeeper authored and SiteRelEnby committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    8f9dc1d View commit details
    Browse the repository at this point in the history
  9. dammit, got alkaline detection half working and then my flashing adap…

    …ter died
    
    (saving progress here so I can work on a different branch)
    ToyKeeper authored and SiteRelEnby committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    92d9ded View commit details
    Browse the repository at this point in the history
  10. d3aa: got weak battery detection actually working,

    and not letting the magic smoke out of updi adapters any more (probably)
    
    The alkaline detection might be a little too lenient though; it
    could potentially fail to activate limits when the cell is completely
    full or stronger than an average alkaline.  One of my test cells
    measured at 72 / 75, so if it was just a little stronger it'd pass...
    but most alkalines I tried were in the 40 to 60 range and failed easily.
    
    OTOH, if I make it easier to fail, it's likely to trip on normal li-ion
    cells, and I don't want that.
    
    So as a future enhancement idea, maybe it should have a smaller sag
    threshold for AA and a larger threshold for li-ion.  That would reduce
    false negatives for AA, while still preventing false positives for li-ion.
    ToyKeeper authored and SiteRelEnby committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    877b158 View commit details
    Browse the repository at this point in the history
  11. weak battery detection: use different thresholds for AA and Li-Ion

    (also, fixed bug where a totally empty li-ion didn't get limited)
    ToyKeeper authored and SiteRelEnby committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    da91bfd View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    293ceed View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    d6be44a View commit details
    Browse the repository at this point in the history
  14. increased voltage precision from 0.025V to 0.02V

    (so 0 to 255 now goes from 0.00V to 5.10V)
    ToyKeeper authored and SiteRelEnby committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    2580629 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    b1e6ee3 View commit details
    Browse the repository at this point in the history
  16. Bugfix: Tactical mode has a dependency on momentary mode

    Use case 1: Updating a t85 light, where tactical mode is useful but
    takes some squeezing, and momentary is less useful
    
    Use case 2: Custom builds for people who don't like/want momentary mode
    SiteRelEnby committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    e6747c3 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    ef7a45d View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    0fb1078 View commit details
    Browse the repository at this point in the history
  19. use smooth steps in lockout mode, if enabled

    Based on [SammysHP's patch](ToyKeeper#18),
    but only for lockout mode, not tactical.
    ToyKeeper authored and SiteRelEnby committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    57764c1 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    fb71361 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    5582498 View commit details
    Browse the repository at this point in the history
  22. MODELS: added emisar-d3aa

    ToyKeeper authored and SiteRelEnby committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    b4fb058 View commit details
    Browse the repository at this point in the history
  23. use low aux for chan-aux level 0

    aslotnick authored and SiteRelEnby committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    cf80d17 View commit details
    Browse the repository at this point in the history
  24. Add Fireflies PL47G2-219 variant.

    Same as PL47G2 but with FET PWM levels safe for 219 emitters.
    
    Same as difference between PL47 and PL47-219.
    
    PL47G2 base allows low mode for aux LEDs, PL47 does not.
    jim-p authored and SiteRelEnby committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    202310b View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    480335c View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    0538ca1 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    394c196 View commit details
    Browse the repository at this point in the history
  28. Updating PR branch to rebase on latest changes, and also save a bit of

    MCU space on a few lights
    SiteRelEnby committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    be0361a View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2024

  1. Configuration menu
    Copy the full SHA
    43e5c57 View commit details
    Browse the repository at this point in the history