Open
Description
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.