MCPcopy Create free account
hub / github.com/OpenActionAPI/rust-elgato-streamdeck / set_brightness

Method set_brightness

src/asynchronous.rs:114–117  ·  view source on GitHub ↗

Sets brightness of the device, value range is 0 - 100

(&self, percent: u8)

Source from the content-addressed store, hash-verified

112
113 /// Sets brightness of the device, value range is 0 - 100
114 pub async fn set_brightness(&self, percent: u8) -> Result<(), StreamDeckError> {
115 let device = self.device.lock().await;
116 block_in_place(move || device.set_brightness(percent))
117 }
118
119 /// Writes image data to Stream Deck device, changes must be flushed with `.flush()` before
120 /// they will appear on the device!

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected