2023-06-05 19:03:55 +00:00
|
|
|
///
|
|
|
|
/// Configure udev:
|
|
|
|
/// https://github.com/Grix/helios_dac/blob/master/docs/udev_rules_for_linux.md
|
|
|
|
///
|
2023-06-06 09:30:46 +00:00
|
|
|
/*
|
2023-06-05 19:03:55 +00:00
|
|
|
use helios_dac::NativeHeliosDacController;
|
|
|
|
use helios_dac::{
|
|
|
|
// Coordinate,
|
|
|
|
Color,
|
|
|
|
DeviceStatus,
|
|
|
|
Frame,
|
|
|
|
Point,
|
|
|
|
};
|
2023-06-06 09:30:46 +00:00
|
|
|
*/
|
2023-06-05 19:03:55 +00:00
|
|
|
use crate::conf::HeliosConf;
|
|
|
|
use crate::device::common::{Device, Status};
|
|
|
|
|
|
|
|
pub struct HeliosDevice {
|
|
|
|
pub conf: HeliosConf,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl HeliosDevice {
|
|
|
|
|
|
|
|
pub fn new ( conf: HeliosConf) -> Self{
|
|
|
|
Self{ conf }
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Device for HeliosDevice {
|
|
|
|
fn status(&self) -> Status {
|
|
|
|
return Status {
|
|
|
|
active: true,
|
|
|
|
last_traced_at: "now".to_string(),
|
|
|
|
properties: vec!["foo".to_string()],
|
|
|
|
};
|
|
|
|
}
|
2023-06-06 09:30:46 +00:00
|
|
|
}
|