You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
317 B
Rust

mod i2c;
mod device;
fn main() {
let addresses = i2c::get_connected();
let mut devices: Vec<device::Device> = Vec::new();
for address in addresses.iter() {
let device: device::Device = device::create_device(*address);
println!("Device: {}", device);
devices.push(device);
}
}