# Brightness >![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE:** >The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## Modules to Import ``` import brightness from '@ohos.brightness'; ``` ## System Capabilities SystemCapability.PowerManager.DisplayPowerManager ## brightness.setValue setValue\(value: number\) Sets the screen brightness. - Parameters

Name

Type

Mandatory

Description

value

number

Yes

Brightness value, ranging from 0 to 255

- Example ``` import brightness from '@ohos.brightness.d.ts'; brightness.setValue(128); ```