Writes image data to Stream Deck device, changes must be flushed with `.flush()` before they will appear on the device!
(&self, key: u8, image_data: &[u8])
| 119 | /// Writes image data to Stream Deck device, changes must be flushed with `.flush()` before |
| 120 | /// they will appear on the device! |
| 121 | pub async fn write_image(&self, key: u8, image_data: &[u8]) -> Result<(), StreamDeckError> { |
| 122 | let device = self.device.lock().await; |
| 123 | block_in_place(move || device.write_image(key, image_data)) |
| 124 | } |
| 125 | |
| 126 | /// Writes image data to Stream Deck device's lcd strip/screen as region. |
| 127 | /// Only Stream Deck Plus supports writing LCD regions, for Stream Deck Neo use write_lcd_fill |