Turn HD44780 LCD Backlight Off on Shutdown #2443
Labels
enhancement
help wanted
legacy_v2
Issues, discussions and PRs related to Version 2.x
Tips Tricks Hacks
Version
2.7.0 - 550a258
Branch
master
OS
Raspbian GNU/Linux 11 (bullseye) Lite 32bit
Pi model
Zero 2W
Hardware
HD44780 connected via i2c backpack
What happened?
Wanted to have the LCD backlight turn off on shutdown. This probably isn't the cleanest code, but I don't understand what is safe to remove from the definitions at the start. All I did was remove all of the code that updated the screen, and just left the command to turn off the backlight.
I created a new .py file that simply turns off the backlight, and added an ExecStop command to run this to the service file.
Filename: i2c_lcd_backlight_off.py
Filename: i2c-lcd.service
(Edited to fix code blocks)
Logs
No response
Configuration
No response
More info
No response
The text was updated successfully, but these errors were encountered: