Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.55 KB

lamparray_getlampinfo_2092858346.md

File metadata and controls

47 lines (31 loc) · 1.55 KB
-api-id -api-type ms.custom
M:Windows.Devices.Lights.LampArray.GetLampInfo(System.Int32)
winrt method
RS5

Windows.Devices.Lights.LampArray.GetLampInfo

-description

Fetches the LampInfo corresponding to the lamp index.

-parameters

-param lampIndex

The index. Must be between 0 and LampCount - 1.

-returns

The LampInfo corresponding to lampIndex.

-remarks

The LampInfo contains properties about a lamp of a given index.

-examples

:::row::: :::column:::

    [LampArray sample](https://github.com/microsoft/Windows-universal-samples/tree/main/Samples/LampArray)
    
    Demonstrates how to control RGB lighting of peripheral devices using the [**Windows.Devices.Lights**](/uwp/api/windows.devices.lights) and [**Windows.Devices.Lights.Effects**](/uwp/api/windows.devices.lights.effects) APIs.

:::column-end:::
:::column:::

    [AutoRGB Sample](https://github.com/microsoft/Dynamic-Lighting-AutoRGB)
    
    Demonstrates how to extract a single, representative color from a desktop screen and use it to illuminate LED lamps on a connected RGB device.
        
:::column-end:::

:::row-end:::

-see-also

Lighting and Illumination (www.usb.org), Dynamic lighting