chore: 改为单独 task 推送灯条颜色。

This commit is contained in:
2023-04-28 21:24:46 +08:00
parent 7a87748cf1
commit 3deb14823d
4 changed files with 77 additions and 184 deletions

View File

@ -11,6 +11,7 @@ mod screenshot_manager;
use ambient_light::{Border, ColorCalibration, LedStripConfig, LedStripConfigGroup};
use display_info::DisplayInfo;
use paris::{error, info, warn};
use rpc::MqttRpc;
use screenshot::Screenshot;
use screenshot_manager::ScreenshotManager;
use serde::{Deserialize, Serialize};
@ -197,6 +198,8 @@ async fn main() {
let led_color_publisher = ambient_light::LedColorsPublisher::global().await;
led_color_publisher.start();
let _mqtt = MqttRpc::global().await;
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![
greet,