Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo 0 > /sys/class/backlight/rpi_backlight/bl_power
- echo 1 > /sys/class/backlight/rpi_backlight/bl_power
- echo n > /sys/class/backlight/rpi_backlight/brightness
- >>> import rpi_backlight as bl
- >>> bl.set_brightness(255)
- >>> bl.set_brightness(20, smooth=True, duration=3)
- >>> bl.get_max_brightness()
- 255
- >>> bl.get_actual_brightness()
- 20
- >>> bl.get_power()
- True
- >>> bl.set_power(False)
Add Comment
Please, Sign In to add comment