Skip to content

Instantly share code, notes, and snippets.

@drewcassidy
Created April 18, 2016 02:25
Show Gist options
  • Save drewcassidy/f61b7613aaa16a47740cb433d63feb3d to your computer and use it in GitHub Desktop.
Save drewcassidy/f61b7613aaa16a47740cb433d63feb3d to your computer and use it in GitHub Desktop.
bash script to set the raspberry pi 7" LCD backlight. takes 1 argument from 0 to 255. place in /usr/bin
#!/bin/bash
echo $1 > /sys/class/backlight/rpi_backlight/brightness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment