Skip to content

Illumination LED control range limit. #149

Open
@easytarget

Description

@easytarget

Inspired by the welcome recent PR's and comments from @ericfont ..

Reconfig the LED illumination lamp control:

  • Pin: a valid GPIO number or undefined for no LED.
  • MaxVal: PWM value for full on;(100%); allows max value to be restricted for safety/convenience etc. default 1024.
  • MinVal: PWM value for full off (0%); Usually 0, but allows a value above this to be set, preventing the light being fully deactivated; which is another use-case I want to support.
  • Special case: Min=Max; lock lamp to that PWM value permanently and do not display slider in UI
  • Cater for Inverse Operation: Support for reversed drive LED's (eg PNP vs NPN) by allowing MaxVal to be lower than MinVal; make sure all the maths is handles this properly, and test..
  • Add notes to these config options to warn of overheating, image glitches and the need for a righteous PSU.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions