跳至主要內容

取得背光亮度值 (device.brightness)

聲明

亮度 = device.brightness()

回傳值

  • 亮度
    實數型,返回目前裝置的背光亮度,範圍 0.0~1.0

範例

參考 device.set_brightness 範例