modules/led: State tracking in PolychromeLed; fix flickering
- Have PolychromeLed track on/off state independently of color and
brightness.
- Expose separate Enable()/Disable() functions and no longer Enable()
or Disable() when changing the color or brightness.
- Replace LedOutputStateMachine with AmbientLightAdjustedLed, since its
functionality is moved to PolychromeLed.
Change-Id: I034ad790a3202664773692cfd054cf99bf18484c
Reviewed-on: https://pigweed-internal-review.git.corp.google.com/c/pigweed/showcase/rp2/+/73396
Reviewed-by: Aaron Green <aarongreen@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-internal-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Wyatt Hepler <hepler@google.com>
5 files changed