Skip to content

Commit 38f4658

Browse files
fwk: main: add auto brightness fpled and keyboard backlight
follow UI ERS to implement auto brightness, according to the ALS spec to modify the lux range fpled and keyboard backlight will follow lux to auto setting the brightness. BRANCH=fwk-main BUG=[86eracn43](https://app.clickup.com/t/86eracn43) TEST= test on marigold, set fp led control(3e0e) to auto(0xff), monitor the als lux , and check when lux changes, fp led will change. TEST= test on marigold, press hotkey(fn+space) switch kbbl level to 5, monitor the als lux , and check when lux changes, kbbl led will change. Co-authored-by: LeoCX_Tsai <LeoCX_Tsai@compal.com> Co-authored-by: Daniel Schaefer <dhs@frame.work> Change-Id: I9e122d7860c1ebce2a9fbfe622a57693f4426c32 Signed-off-by: LeoCX_Tsai <LeoCX_Tsai@compal.com> (cherry picked from commit ee827d24ba5916e53d7eba51a538cd417d74fd99)
1 parent 9936b83 commit 38f4658

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

zephyr/program/framework/include/hid_device.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ int hid_target_register(const struct device *dev);
2222

2323
int hid_target_unregister(const struct device *dev);
2424

25+
int hidals_lux_get(void);
26+
2527
#endif /* __CROS_EC_I2C_HID_DEVICE_H */

0 commit comments

Comments
 (0)