1
1
Fork
You've already forked deck-driver
0
Library for interacting with Stream Decks
  • Rust 100%
2023年04月16日 20:50:11 +00:00
.cargo Device connection, some info methods 2022年11月03日 21:35:34 +02:00
src apply changes and fmt 2023年04月16日 22:18:04 +02:00
.gitignore Finished info, starting with base type 2022年11月03日 20:11:38 +02:00
Cargo.lock Serial test is a dev dependency 2023年03月04日 17:34:17 +02:00
Cargo.toml change name 2023年04月16日 20:24:35 +00:00
LICENSE Initial commit 2022年11月03日 18:09:07 +02:00
no-place-like-localhost.jpg Set methods and image write 2022年11月04日 00:35:57 +02:00
README.md Update 'README.md' 2023年04月16日 20:50:11 +00:00

deck-driver

Library for interacting with Stream Decks through hidapi.

Forked from streamduck-org/elgato-streamdeck

Example

// Create instance of HidApi
lethid=new_hidapi();// List devices and unsafely take first one
let(kind,serial)=StreamDeck::list_devices(&hid).remove(0);// Connect to the device
letmutdevice=StreamDeck::connect(&hid,kind,&serial).expect("Failed to connect");// Print out some info from the device
println!("Connected to '{}' with version '{}'",device.serial_number().unwrap(),device.firmware_version().unwrap());// Set device brightness
device.set_brightness(35).unwrap();// Use image-rs to load an image
letimage=open("no-place-like-localhost.jpg").unwrap();// Write it to the device
device.set_button_image(7,image).unwrap();

Supported Devices

Support of the devices is the same as from libraries above, I only personally tested Original v2. I'll just keep updating this library to match upstream libraries.

But as it stands, this library should support following devices:

  • Stream Deck Original
  • Stream Deck Original V2
  • Stream Deck XL
  • Stream Deck XL V2
  • Stream Deck Mini
  • Stream Deck Mini Mk2
  • Stream Deck Mk2
  • Stream Deck Pedal