Windows.Devices.Lights Namespace

Provides APIs for accessing and controlling LampArrays and legacy Lamp devices.

Classes

Lamp

Represents a lamp device.

LampArray

Represents a LampArray device attached the system. Currently, only HID LampArrays are supported.

LampAvailabilityChangedEventArgs

Provides data for the AvailabilityChanged event.

LampInfo

Container of various properties of an individual lamp for a specific index.

Enums

LampArrayKind

The type of physical device the LampArray is part of.

LampPurposes

Purpose/s of a lamp.

Examples

LampArray sample

Demonstrates how to control RGB lighting of peripheral devices using the Windows.Devices.Lights and Windows.Devices.Lights.Effects APIs.

AutoRGB Sample

Demonstrates how to extract a single, representative color from a desktop screen and use it to illuminate LED lamps on a connected RGB device.

Remarks

LampArray APIs can be used in a game or notification application to control the lights on your keyboard or mouse.

A common scenario for using the Lamp APIs in this namespace is adding a flashlight feature to your app that allows the user to manually turn on and off a device's camera torch light, if one is available.

See also