Skip to content

Just a test program for using Nothing Glyph sysfs interface, supports Phone(1) and Phone(2).

License

Notifications You must be signed in to change notification settings

Moe-sushi/nothing-glyph-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Just a test program for using Nothing Glyph sysfs interface, supports Phone(1) and Phone(2).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages