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

#1808 in Hardware support

Download history 117/week @ 2024-07-22 120/week @ 2024-07-29 113/week @ 2024-08-05 191/week @ 2024-08-12 111/week @ 2024-08-19 171/week @ 2024-08-26 131/week @ 2024-09-02 138/week @ 2024-09-09 134/week @ 2024-09-16 223/week @ 2024-09-23 183/week @ 2024-09-30 75/week @ 2024-10-07 125/week @ 2024-10-14 157/week @ 2024-10-21 179/week @ 2024-10-28 145/week @ 2024-11-04

622 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