2 releases

0.1.1 Sep 27, 2019
0.1.0 Sep 27, 2019

#488 in Operating systems

MIT license

7KB
103 lines

rust-lcd

Toggle the LCD panel backlight.


lib.rs:

Iteration over backlight devices.

Usage

The default directory for backlight devices is BACKLIGHT_PATH, whose value is "/sys/class/backlight". The DeviceIter iterates over...

Examples

use std::path::Path;
for device in DeviceIter::default() {
     assert_eq!(
        Path::new(BACKLIGHT_PATH),
        device.path().parent().unwrap());
}

No runtime deps