# Screen Brightness
## Modules to Import
```
import brightness from '@ohos.brightness.d.ts'.
```
## Functions
## setValue\(value: number\)
Sets the screen brightness.
**Parameters**
Name
|
Type
|
Mandatory
|
Description
|
value
|
number
|
Yes
|
Brightness value, ranging from 0 to 255
|
**Return Values**
None
- Example
```
import brightness from '@ohos.brightness.d.ts'
brightness.setValue(128);
```