tianyoujian / MZDPI

GNU Lesser General Public License v3.0
75 stars 31 forks source link

how to dim the screen ? #2

Open haddadnidal opened 5 years ago

haddadnidal commented 5 years ago

Any idea on how to dim the screen ? any documentation ?

markbirss commented 5 years ago

@neeeeds

here are the command when the jumper is on PWM and GPIO18 position

gpio pwmc 1 # set clock 1000 makes noise for me gpio -g mode 18 pwm # enable PWM on GPIO18 gpio -g pwm 18 1010 # change screen brightness to 975 range 0 - 1024

if you add these lines to /etc/rc.local remember that on first startup the screen will stay blank for a bit before the commands are executed

found these instructions from adopting the WaveShare documentation https://www.waveshare.com/w/upload/5/56/PWM_control_backlight_manual.pdf