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