Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

Don't turn on backlights during init. #65

Closed
wants to merge 1 commit into from
Closed

Don't turn on backlights during init. #65

wants to merge 1 commit into from

Conversation

jzarl
Copy link

@jzarl jzarl commented Nov 15, 2013

This avoids the short backlight flash when the backlight is immediately
turned back off (sometimes I only want to set the text without turning on the backlight).

This avoids the short backlight flash when the backlight is immediately
turned back off.
@tdicola tdicola closed this in 349fbb2 Jul 14, 2014
@tdicola
Copy link
Contributor

tdicola commented Jul 14, 2014

Thanks for submitting the pull and apologies it wasn't reviewed earlier. I just committed a change to add an optional backlight parameter to the initializer/constructor. The default value is ON which mimics the existing behavior of the library, but if you want to keep the backlight off when the display is turned on just pass in backlight=Adafruit_CharLCDPlate.OFF to the initializer. This way folks who have scripts that depend on the backlight automatically turning on won't be surprised if they update the library and it suddenly stops turning on the light. Thanks again for suggesting the change and submitting the pull!

@jzarl jzarl deleted the lcdplate-init branch November 24, 2014 13:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants