Crates.io | elgato-keylight |
lib.rs | elgato-keylight |
version | 0.5.0 |
source | src |
created_at | 2021-08-31 03:40:08.526909 |
updated_at | 2021-09-13 04:08:22.238511 |
description | Control the Elgato Keylights series from Rust |
homepage | |
repository | https://github.com/coral/elgato-keylight-rs |
max_upload_size | |
id | 444836 |
size | 51,704 |
This library allows you to easily control your Elgato Keylight.
You can test the library easy by opening examples/from_name.rs
. from_name.rs
and from_ip.rs
has identical functionality, only differing in how they connect.
//Lookup lamp by name (using zeroconf)
let mut kl = KeyLight::new_from_name("Key Light Left", None).await?;
//Turn on the light
kl.set_power(true).await?;
//Set brightness to 30
kl.set_brightness(30).await?;
Just open a PR LUL
All under MIT