4 releases

Uses old Rust 2015

0.2.2 Feb 16, 2023
0.2.1 Mar 28, 2018
0.2.0 Mar 27, 2018
0.1.0 Mar 25, 2018

#1656 in Hardware support

Download history 50/week @ 2024-07-03 147/week @ 2024-07-10 126/week @ 2024-07-17 133/week @ 2024-07-24 105/week @ 2024-07-31 128/week @ 2024-08-07 185/week @ 2024-08-14 103/week @ 2024-08-21 171/week @ 2024-08-28 135/week @ 2024-09-04 156/week @ 2024-09-11 122/week @ 2024-09-18 233/week @ 2024-09-25 154/week @ 2024-10-02 98/week @ 2024-10-09 101/week @ 2024-10-16

609 downloads per month
Used in 6 crates (via ddc-hi)

MIT license

13KB
224 lines

ddc-i2c

release-badge docs-badge license-badge

ddc-i2c implements the ddc traits for i2c implementations.

Backends

  • i2c-linux using the with-linux Cargo feature.
    • The with-linux-enumerate feature exposes an iterator over all detected displays.

Documentation

See the documentation for up to date information.


lib.rs:

Implementation of DDC/CI traits over I2C.

Example

extern crate ddc_i2c;
extern crate ddc;

use ddc::Ddc;

let mut ddc = ddc_i2c::from_i2c_device("/dev/i2c-4").unwrap();
let mccs_version = ddc.get_vcp_feature(0xdf).unwrap();
println!("MCCS version: {:04x}", mccs_version.maximum());

Dependencies

~220KB