1# Copyright (c) 2022, Michal Morsisko 2# SPDX-License-Identifier: Apache-2.0 3 4description: Rohm BH1750 ambient light sensor. 5 6compatible: "rohm,bh1750" 7 8include: [sensor-device.yaml, i2c-device.yaml] 9 10properties: 11 resolution: 12 type: int 13 default: 1 14 description: | 15 Resolution of the measurement result 16 0 = low resolution 17 1 = high resolution 18 2 = high resolution 2 19 The default mode number 1 is mentioned 20 in the datasheet as recommended by the 21 sensor manufacturer. One should pick 22 other mode, if higher or lower resolution 23 is desired. 24 enum: 25 - 0 26 - 1 27 - 2 28 mtreg: 29 type: int 30 default: 69 31 description: | 32 Duration of single measurement process. 33 The greater the value, the longer the duration 34 and greater accuracy. After sensor power-on 35 mtreg register is set to default value of 36 this property (chosen by sensor manufacturer): 69. 37 Valid values are in range 31-254 (inclusive). 38