lj_rust/src/device/helios.rs

39 lines
703 B
Rust
Raw Normal View History

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-05 19:03:55 +00:00
use helios_dac::NativeHeliosDacController;
use helios_dac::{
// Coordinate,
Color,
DeviceStatus,
Frame,
Point,
};
*/
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()],
};
}
}