Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 1.18 KB

File metadata and controls

21 lines (19 loc) · 1.18 KB

NOTE:

You need to root your phone to use the sysfs interface.

Phone(1):

The driver is registered in /sys/class/leds/aw210xx_led.
Useful interfaces:

  • max_brightness: the max value of brightness.
  • video_leds_effect: write 1 into it to enable video light
  • single_led_br: write "led-number brightness" into it to control single led.

For test code to use single_led_br,see phone1 directory.

Phone(2):

The driver is registered in /sys/bus/i2c/drivers/aw20036_led/0-003a/leds/led_strips (aka. /sys/devices/platform/soc/994000.i2c/i2c-0/0-003a/leds/led_strips)
Useful interfaces:

  • max_brightness: the max value of brightness.
  • all_brightness: write an (int) brightness value into it to enable all leds.
  • all_white_brightness: for glyph torch.
  • operating_mode: write 1 into it to use frame_brightness and single_brightness interface.
  • single_brightness: write "led-number brightness" into it to control single led. number 13 for video led.
  • frame_brightness write 32 brightness value into it to control all the leds,seems that it cannot control video light.

For test code to use single_brightnessand frame_brightness interface, see phone2 directory.