I have a 2.4 inch adafruit monitor for my rasberry pi, connected through the GPIO pins, and I have a problem with setting the screen brightness.
On the product page it says that the backlight can be controlled with the 18th GPIO pin, but I have no luck.
I am using the custom raspbian image that this monitor requires, downloaded from the adafruit website. Everything works fine except this.
So as the tutorial says, I have tried controlling it through the 18th pin, I have entered the following in the console:
sudo sh -c 'echo "1" > /sys/class/backlight/soc\:backlight/brightness' gpio -g mode 18 pwm gpio pwmc 1000 gpio -g pwm 18 100
I think this code should lower the brighness to 100 out of 1023, which would be 9.7% brightness, but nothing happens.
No error is given, it's as if the command is doing nothing.