Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BB-LCD-ADAFRUIT-18-SPI1: add pwm backlight on P9.14 #75

Merged
merged 1 commit into from
Mar 22, 2018
Merged

BB-LCD-ADAFRUIT-18-SPI1: add pwm backlight on P9.14 #75

merged 1 commit into from
Mar 22, 2018

Conversation

pdp7
Copy link

@pdp7 pdp7 commented Mar 22, 2018

Add definition for PWM backlight control on Adafruit 1.8" TFT LCD.

Instructions:

echo 0 > /sys/devices/platform/backlight_pwm/backlight/backlight_pwm/bl_power

NOTE: FB_BLANK_UNBLACK is specified in sysfs-class-backlight

Add defintion for PWM backlight control on Adafruit 1.8" TFT LCD.

Connect lite pin on lcd to P9.14.

Turn on backlight on by setting bl_power to 0 (FB_BLANK_UNBLACK):
echo 0 > /sys/devices/platform/backlight_pwm/backlight/backlight_pwm/bl_power

That value is specified in:
https://www.kernel.org/doc/Documentation/ABI/stable/sysfs-class-backlight

What:		/sys/class/backlight/<backlight>/bl_power
Date:		April 2005
KernelVersion:	2.6.12
Contact:	Richard Purdie <rpurdie@rpsys.net>
Description:
		Control BACKLIGHT power, values are FB_BLANK_* from fb.h
		 - FB_BLANK_UNBLANK (0)   : power on.
		 - FB_BLANK_POWERDOWN (4) : power off

Thanks to @notro for the suggestion in PR #68 comment:
#68 (comment)

Signed-off-by: Drew Fustini <drew@pdp7.com>
@pdp7
Copy link
Author

pdp7 commented Mar 22, 2018

@RobertCNelson @dlech please let me know if you notice any issues with this PR to enable PWM backlight for Adafruit 1.8" LCD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants