Sets specified button's image, changes must be flushed with `.flush()` before they will appear on the device!
(&self, key: u8, image: DynamicImage)
| 436 | /// Sets specified button's image, changes must be flushed with `.flush()` before |
| 437 | /// they will appear on the device! |
| 438 | pub fn set_button_image(&self, key: u8, image: DynamicImage) -> Result<(), StreamDeckError> { |
| 439 | let image_data = convert_image(self.kind, image)?; |
| 440 | self.write_image(key, &image_data)?; |
| 441 | Ok(()) |
| 442 | } |
| 443 | |
| 444 | /// Sets specified touch point's led strip color |
| 445 | pub fn set_touchpoint_color(&self, point: u8, red: u8, green: u8, blue: u8) -> Result<(), StreamDeckError> { |
no test coverage detected