Description: Calculates LED brightness during desktop component refresh.
Arguments: No event-specific arguments. Argument_EventName is OnGetValue; Argument_SenderName and Argument_SenderID identify the component.
Result: Return an integer from 0 to 255: zero is off, 255 is full brightness, and intermediate values give partial brightness. The LED color is configured separately.
Fallback: If the formula is missing or calculation fails, a non-Null linked Boolean entry sets brightness to 255 for True or zero for False. Without such an entry, the previous brightness remains. A successfully calculated Null, nonnumeric or out-of-range result is not checked before assignment and is not a supported way to request fallback.
Availability: Desktop only. The web LED does not execute this formula; it switches between on/off images using the linked Boolean entry. Formula-based partial brightness is unavailable on web.
Examples (desktop): Full brightness:
Result := 255;
Reduced brightness:
Result := 128;
Switch off:
Result := 0;