| Crates.io | colorlight |
| lib.rs | colorlight |
| version | 0.1.0 |
| created_at | 2024-12-16 23:54:32.311414+00 |
| updated_at | 2024-12-16 23:54:32.311414+00 |
| description | A Rust library for detecting and sending frames to Colorlight 5A-75 LED receiver cards via Ethernet. |
| homepage | https://github.com/asamonik/colorlight.rs |
| repository | https://github.com/asamonik/colorlight.rs |
| max_upload_size | |
| id | 1485639 |
| size | 14,239 |
A Rust library for detecting and sending frames to Colorlight 5A-75 LED receiver cards via Ethernet.
Add to Cargo.toml:
[dependencies]
colorlight_rs = { git = "https://github.com/your-repo/colorlight_rs.git", branch = "main" }
use colorlight_rs::ColorlightCard;
fn main() -> std::io::Result<()> {
let interface_name = "eth0";
let mut controller = ColorlightCard::open(interface_name)?;
let info = controller.detect_receiver()?;
println!("Receiver Info: {:?}", info);
controller.send_display_frame(0xFF, 0xFF, 0x76, 0x06)?;
let row_data_bgr: Vec<u8> = vec![0u8; 256 * 3];
controller.send_row(0, &row_data_bgr)?;
Ok(())
}
Many thanks to hkubota for his detailed blog post on the Colorlight 5A-75B protocol.