Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
        backlight {
                compatible = "gpio-backlight";
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_backlight>;
                gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>;
                default-on;
        };

3. Controlling Backlight

To turn the LCD backlight on, run the following command:

Code Block
/ # echo 0 > /sys/class/backlight/backlight/bl_power

To turn the LCD backlight off, run the following command:

...